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
Setting font from preference dialog in IDLE on OS X broken #49482
Comments
When setting the font in IDLE's Preferences dialog on OSX, having Exception in Tkinter callback
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/tkinter
/__init__.py", line 1399, in __call__
return self.func(*args)
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/idlelib
/configDialog.py", line 1125, in Ok
self.Apply()
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/idlelib
/configDialog.py", line 1129, in Apply
self.DeactivateCurrentConfig()
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/idlelib
/configDialog.py", line 1107, in DeactivateCurrentConfig
winInstances = self.parent.instance_dict.keys()
File
"/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/tkinter
/__init__.py", line 1708, in __getattr__
return getattr(self.tk, attr)
AttributeError: 'tkapp' object has no attribute 'instance_dict' |
FWIW, I am not able to reproduce this using a release3.0 IDLE (so with |
At 10:56 PM +0000 02/12/09, Ned Deily wrote:
It does still happen if I move my preferences. And move my .Idle.py. So, I started again with a fresh checkout. I didn't switch the order of the Frameworks |
OK, so I built 3.1 on a clean (G4) system instead of my highly |
I get the same problem when I try to change the key set. This is on on I too changed the order of /Library/Frameworks and A simple fix for me was to add the line root.instance_dict = {} in macosxsupport.py That does not seem to have any other ill effects. |
Added Brad's snippet to macosxSupport.py: see http://bugs.python.org/issue6075 |
Superceeded by 6075. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: