IDLE doesn't save preferences

Kevin Walzer kw at codebykevin.com
Wed May 20 20:56:23 EDT 2009


Kevin Walzer wrote:
> I'm using IDLE on Mac OS X 10.5.7 (Python 2.6.2) and I'm getting  a 
> strange error when I try to save preferences from the configuration dialog:
> 
> Exception in Tkinter callback
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", 
> line 1410, in __call__
> return self.func(*args)
>   File 
> "/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/idlelib/configDialog.py", 
> line 1146, in Apply
>   self.DeactivateCurrentConfig()
> File 
> "/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/idlelib/configDialog.py", 
> line 1124, in DeactivateCurrentConfig
>     winInstances=self.parent.instance_dict.keys()
>    File 
> "/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", 
> line 1722, in __getattr__
> File 
> "/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", 
> line 1722, in __getattr__
>    return getattr(self.tk, attr)
> AttributeError: instance_dict
> 
> IDLE just hangs and won't save/update my preferences.
> 
> Any ideas?

Found a fix here:

http://bugs.python.org/issue5232

& uploaded patch here:

http://bugs.python.org/issue6075


-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com



More information about the Python-list mailing list