diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-01-02 13:00:09 +0000 |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-01-02 13:00:09 +0000 |
commit | ad18a4953258e67e6877cbaf52ff15cae999221d (patch) | |
tree | 0853971014b098afc752e363f243fa73fd13c3f6 /Lib/idlelib/macosxSupport.py | |
parent | 1414e17b39c5c780fe06ce7d1b217856a09a8f90 (diff) | |
download | cpython-git-ad18a4953258e67e6877cbaf52ff15cae999221d.tar.gz |
Backport of r68153
Diffstat (limited to 'Lib/idlelib/macosxSupport.py')
-rw-r--r-- | Lib/idlelib/macosxSupport.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py index 222abfce75..279b1cc18e 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, |