]> granicus.if.org Git - python/commitdiff
Backport of r72946. This closes Issue 6100 and 6951 for
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 20 Sep 2009 19:06:58 +0000 (19:06 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 20 Sep 2009 19:06:58 +0000 (19:06 +0000)
the 2.6 branch.

Lib/idlelib/macosxSupport.py

index 98b35b6a65e024e0f6b4c063213de87504801d48..bf472c22d2d8db15c29d2ceeeb88ce799d0d67b8 100644 (file)
@@ -82,6 +82,7 @@ def overrideRootMenu(root, flist):
 
     def config_dialog(event=None):
         import configDialog
+        root.instance_dict = flist.inversedict
         configDialog.ConfigDialog(root, 'Settings')
 
 
@@ -95,7 +96,7 @@ def overrideRootMenu(root, flist):
     tkversion = root.tk.eval('info patchlevel')
     # Note: we cannot check if the string tkversion >= '8.4.14', because
     # the string '8.4.7' is greater than the string '8.4.14'.
-    if map(int, tkversion.split('.')) >= (8, 4, 14):
+    if tuple(map(int, tkversion.split('.'))) >= (8, 4, 14):
         Bindings.menudefs[0] =  ('application', [
                 ('About IDLE', '<<about-idle>>'),
                 None,