summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 13:00:09 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 13:00:09 (GMT)
commitad18a4953258e67e6877cbaf52ff15cae999221d (patch)
tree0853971014b098afc752e363f243fa73fd13c3f6 /Lib
parent1414e17b39c5c780fe06ce7d1b217856a09a8f90 (diff)
downloadcpython-ad18a4953258e67e6877cbaf52ff15cae999221d.zip
cpython-ad18a4953258e67e6877cbaf52ff15cae999221d.tar.gz
cpython-ad18a4953258e67e6877cbaf52ff15cae999221d.tar.bz2
Backport of r68153
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/help.txt5
-rw-r--r--Lib/idlelib/macosxSupport.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/Lib/idlelib/help.txt b/Lib/idlelib/help.txt
index 76cccf0..7bfd2ca 100644
--- a/Lib/idlelib/help.txt
+++ b/Lib/idlelib/help.txt
@@ -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
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,