summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/macosxSupport.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 12:59:32 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 12:59:32 (GMT)
commit8c95484cff12e96356f67d31e3fa5e5aa7dbd5ca (patch)
tree444aa92146264dba74694e8ce9fd7da8244d2d4e /Lib/idlelib/macosxSupport.py
parent862359e2e6d11bcc100bcf8f62d6205439358f89 (diff)
downloadcpython-8c95484cff12e96356f67d31e3fa5e5aa7dbd5ca.zip
cpython-8c95484cff12e96356f67d31e3fa5e5aa7dbd5ca.tar.gz
cpython-8c95484cff12e96356f67d31e3fa5e5aa7dbd5ca.tar.bz2
Fix for issue3559: No preferences menu in IDLE on OSX
1) Add a comment to the help file to that points to the preferences menu. 2) An earlier checkin tried to detect Tk >= 8.10.14, but did this in the wrong way. The end result of this was that the IDLE->Preferences... menu got surpressed when using the system version of Tcl/Tk
Diffstat (limited to 'Lib/idlelib/macosxSupport.py')
-rw-r--r--Lib/idlelib/macosxSupport.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py
index 222abfc..279b1cc 100644
--- a/Lib/idlelib/macosxSupport.py
+++ b/Lib/idlelib/macosxSupport.py
@@ -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,