summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/macosxSupport.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 13:10:34 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 13:10:34 (GMT)
commite9f8bf023a2293e4948b492b6aea34007c2c0197 (patch)
tree2f05be10897438d88daf726875b4368c072e0b45 /Lib/idlelib/macosxSupport.py
parentaf1186071a3666277da8725e19056282d407fd5b (diff)
downloadcpython-e9f8bf023a2293e4948b492b6aea34007c2c0197.zip
cpython-e9f8bf023a2293e4948b492b6aea34007c2c0197.tar.gz
cpython-e9f8bf023a2293e4948b492b6aea34007c2c0197.tar.bz2
Recorded merge of revisions 68153 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68153 | ronald.oussoren | 2009-01-02 13:59:32 +0100 (Fri, 02 Jan 2009) | 10 lines 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 5e249e2..9f92b6c 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 tuple(map(int, tkversion.split('.'))) >= (8, 4, 14):
Bindings.menudefs[0] = ('application', [
('About IDLE', '<<about-idle>>'),
None,