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. Advertisements

  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. Advertisements

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. Vin Jovanovic

    Python 2.3 IDLE doesn't show on Win2000

    Vin Jovanovic, Aug 2, 2003, in forum: Python
    Replies:
    1
    Views:
    401
    Andy C
    Aug 2, 2003
  2. Gary Feldman
    Replies:
    0
    Views:
    463
    Gary Feldman
    Sep 8, 2003
  3. Jay O'Connor

    IDLE on Windows; save files as UNIX?

    Jay O'Connor, Feb 29, 2004, in forum: Python
    Replies:
    3
    Views:
    1,134
    Paxcal
    Mar 1, 2004
  4. Tom McDavid
    Replies:
    0
    Views:
    631
    Tom McDavid
    May 13, 2004
  5. Porky Pig Jr
    Replies:
    0
    Views:
    391
    Porky Pig Jr
    Aug 19, 2004
  6. Porky Pig Jr
    Replies:
    3
    Views:
    534
  7. Dave
    Replies:
    0
    Views:
    496
  8. chuck
    Replies:
    5
    Views:
    621
Loading...