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

Skip to content

Commit ccb416f

Browse files
committed
Issue #23180: Rename IDLE "Windows" menu item to "Window".
Patch by Al Sweigart.
1 parent 3bbb37e commit ccb416f

6 files changed

Lines changed: 9 additions & 11 deletions

File tree

Doc/library/idle.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ Code Context (toggle)(Editor Window only)
258258
Open a pane at the top of the edit window which shows the block context
259259
of the code which has scrolled above the top of the window.
260260

261-
Windows menu (Shell and Editor)
262-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
261+
Window menu (Shell and Editor)
262+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
263263

264264
Zoom Height
265265
Toggles the window between normal size and maximum height. The initial size

Lib/idlelib/EditorWindow.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,10 @@ def set_line_and_column(self, event=None):
439439
("format", "F_ormat"),
440440
("run", "_Run"),
441441
("options", "_Options"),
442-
("windows", "_Windows"),
442+
("windows", "_Window"),
443443
("help", "_Help"),
444444
]
445445

446-
if sys.platform == "darwin":
447-
menu_specs[-2] = ("windows", "_Window")
448-
449446

450447
def createmenubar(self):
451448
mbar = self.menubar

Lib/idlelib/PyShell.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -848,13 +848,10 @@ class PyShell(OutputWindow):
848848
("edit", "_Edit"),
849849
("debug", "_Debug"),
850850
("options", "_Options"),
851-
("windows", "_Windows"),
851+
("windows", "_Window"),
852852
("help", "_Help"),
853853
]
854854

855-
if sys.platform == "darwin":
856-
menu_specs[-2] = ("windows", "_Window")
857-
858855

859856
# New classes
860857
from idlelib.IdleHistory import History

Lib/idlelib/help.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Options Menu (Shell and Editor):
138138
window. This is not present in the Shell
139139
window only the Editor window.
140140

141-
Windows Menu (Shell and Editor):
141+
Window Menu (Shell and Editor):
142142

143143
Zoom Height -- Toggles the window between normal size (40x80 initial
144144
setting) and maximum height. The initial size is in the Configure

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,7 @@ Hisao Suzuki
13201320
Kalle Svensson
13211321
Andrew Svetlov
13221322
Paul Swartz
1323+
Al Sweigart
13231324
Thenault Sylvain
13241325
Péter Szabó
13251326
John Szakmeister

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ IDLE
272272
- Issue #21986: Code objects are not normally pickled by the pickle module.
273273
To match this, they are no longer pickled when running under Idle.
274274

275+
- Issue #23180: Rename IDLE "Windows" menu item to "Window".
276+
Patch by Al Sweigart.
277+
275278
Tests
276279
-----
277280

0 commit comments

Comments
 (0)