IDLE doesn't save preferences

Discussion in 'Python' started by Kevin Walzer, May 21, 2009.

  1. Kevin Walzer

    Kevin Walzer Guest

    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?
    --
    Kevin Walzer
    Code by Kevin
    http://www.codebykevin.com
    Kevin Walzer, May 21, 2009
    #1
    1. Advertising

  2. Kevin Walzer

    Kevin Walzer Guest

    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
    Kevin Walzer, May 21, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. clintonG
    Replies:
    3
    Views:
    2,477
    clintonG
    Jul 3, 2004
  2. =?Utf-8?B?R3JlZw==?=

    IE printing preferences

    =?Utf-8?B?R3JlZw==?=, Jan 24, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    545
    Stefano
    Jan 24, 2005
  3. Patrick Olurotimi Ige

    Rating 1 to 3 in order of preferences Question

    Patrick Olurotimi Ige, Feb 24, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    301
    Patrick Olurotimi Ige
    Feb 24, 2005
  4. Oliver Hirschi

    java.util.prefs.Preferences

    Oliver Hirschi, Jul 16, 2003, in forum: Java
    Replies:
    8
    Views:
    8,748
    Chris Riesbeck
    Jul 16, 2003
  5. Jay O'Connor

    IDLE on Windows; save files as UNIX?

    Jay O'Connor, Feb 29, 2004, in forum: Python
    Replies:
    3
    Views:
    849
    Paxcal
    Mar 1, 2004
Loading...

Share This Page