]> granicus.if.org Git - python/commitdiff
Backport of r68153
authorRonald Oussoren <ronaldoussoren@mac.com>
Fri, 2 Jan 2009 13:00:09 +0000 (13:00 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Fri, 2 Jan 2009 13:00:09 +0000 (13:00 +0000)
Lib/idlelib/help.txt
Lib/idlelib/macosxSupport.py

index 76cccf07cdb89b056a70162536374f7f78c8cfe1..7bfd2cac2ac90c353fd329b7b002c9eae7dd1284 100644 (file)
@@ -90,7 +90,10 @@ Options Menu:
        Configure IDLE -- Open a configuration dialog.  Fonts, indentation,
                           keybindings, and color themes may be altered.
                           Startup Preferences may be set, and Additional Help
-                          Souces can be specified.
+                          Sources can be specified.
+                         
+                         On MacOS X this menu is not present, use
+                         menu 'IDLE -> Preferences...' instead.
        ---
        Code Context --   Open a pane at the top of the edit window which
                          shows the block context of the section of code
index 222abfce753d4bb7080047ca1fda26707f9af1a9..279b1cc18ef19215212ce3267bbd9393dda6fe7b 100644 (file)
@@ -89,7 +89,9 @@ def overrideRootMenu(root, flist):
 
     ###check if Tk version >= 8.4.14; if so, use hard-coded showprefs binding
     tkversion = root.tk.eval('info patchlevel')
-    if tkversion >= '8.4.14':
+    # 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):
         Bindings.menudefs[0] =  ('application', [
                 ('About IDLE', '<<about-idle>>'),
                 None,