Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding label and entry error #478

Closed
Binxlola opened this issue Jul 7, 2018 · 1 comment
Closed

Adding label and entry error #478

Binxlola opened this issue Jul 7, 2018 · 1 comment
Labels
Milestone

Comments

@Binxlola
Copy link

Binxlola commented Jul 7, 2018

I have code that when a button is pressed, a label and an entry will be added to a frame. Now I finished this a little while back and tested it, and it ran smoothly. Now however when retesting some of the features of the app that same functionality produces the error:

Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/init.py", line 1702, in call
return self.func(*args)
File "/Users/jasonsmit/PycharmProjects/Project-X/appJar/appjar.py", line 3603, in
return lambda *args: funcName(param)
File "/Users/jasonsmit/PycharmProjects/Project-X/main.py", line 232, in add_column
with app.labelFrame("New Table"):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 112, in enter
return next(self.gen)
File "/Users/jasonsmit/PycharmProjects/Project-X/appJar/appjar.py", line 5100, in labelFrame
lf.config(fg=labelFg)
AttributeError: 'NoneType' object has no attribute 'config'

At one point I did change the Gui to use settings, which may or may not have changed something in someway. I thought maybe if anyone could possibly clarify what this error message is trying to tell me?

@jarvisteach
Copy link
Owner

Hi @Binxlola - I've just had a look at this - the issue has been introduced in a recent release, but has uncovered a deeper problem. All calls to openContainer are return None, when they should be returning the container. I'll patch it now, and try to work out why it's not been picked up in testing.

@jarvisteach jarvisteach added the bug label Jul 7, 2018
@jarvisteach jarvisteach added this to the 1.0 milestone Jul 7, 2018
jarvisteach added a commit that referenced this issue Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants