Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9f8bf0

Browse files
Recorded merge of revisions 68153 via svnmerge from
svn+ssh://[email protected]/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 ........
1 parent af11860 commit e9f8bf0

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

Lib/idlelib/NEWS.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ What's New in IDLE 3.1a1?
88
user configuration of source encoding; all according to
99
PEP 3120.
1010

11+
- Issue #3549: On MacOS the preferences menu was not present
12+
13+
- Issue #2665: On Windows, an IDLE installation upgraded from an old version
14+
would not start if a custom theme was defined.
15+
1116

1217
What's New in IDLE 3.0a3?
1318
=========================

Lib/idlelib/help.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ Options Menu:
9090
Configure IDLE -- Open a configuration dialog. Fonts, indentation,
9191
keybindings, and color themes may be altered.
9292
Startup Preferences may be set, and Additional Help
93-
Souces can be specified.
93+
Sources can be specified.
94+
95+
On MacOS X this menu is not present, use
96+
menu 'IDLE -> Preferences...' instead.
9497
---
9598
Code Context -- Open a pane at the top of the edit window which
9699
shows the block context of the section of code

Lib/idlelib/macosxSupport.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ def config_dialog(event=None):
8989

9090
###check if Tk version >= 8.4.14; if so, use hard-coded showprefs binding
9191
tkversion = root.tk.eval('info patchlevel')
92-
if tkversion >= '8.4.14':
92+
# Note: we cannot check if the string tkversion >= '8.4.14', because
93+
# the string '8.4.7' is greater than the string '8.4.14'.
94+
if tuple(map(int, tkversion.split('.'))) >= (8, 4, 14):
9395
Bindings.menudefs[0] = ('application', [
9496
('About IDLE', '<<about-idle>>'),
9597
None,

0 commit comments

Comments
 (0)