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

Skip to content

Commit 7f0882c

Browse files
committed
Issue #17532: Always include Options menu for IDLE on OS X.
Patch by Guilherme Simões.
1 parent 6724612 commit 7f0882c

5 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lib/idlelib/Bindings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@
9898
# menu
9999
del menudefs[-1][1][0:2]
100100

101+
# Remove the 'Configure' entry from the options menu, it is in the
102+
# application menu as 'Preferences'
103+
del menudefs[-2][1][0:2]
104+
101105
default_keydefs = idleConf.GetCurrentKeySet()
102106

103107
del sys

Lib/idlelib/EditorWindow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ def set_line_and_column(self, event=None):
463463
]
464464

465465
if macosxSupport.runningAsOSXApp():
466-
del menu_specs[-3]
467466
menu_specs[-2] = ("windows", "_Window")
468467

469468

Lib/idlelib/PyShell.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ class PyShell(OutputWindow):
822822
]
823823

824824
if macosxSupport.runningAsOSXApp():
825-
del menu_specs[-3]
826825
menu_specs[-2] = ("windows", "_Window")
827826

828827

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,7 @@ Michael Simcich
11301130
Ionel Simionescu
11311131
Kirill Simonov
11321132
Nathan Paul Simons
1133+
Guilherme Simões
11331134
Adam Simpkins
11341135
Ravi Sinha
11351136
Janne Sinkkonen

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ IDLE
4545

4646
- Issue #14146: Highlight source line while debugging on Windows.
4747

48+
- Issue #17532: Always include Options menu for IDLE on OS X.
49+
Patch by Guilherme Simões.
50+
4851
Tests
4952
-----
5053

0 commit comments

Comments
 (0)