Skip to content

Commit 50ff02b

Browse files
authored
bpo-34864: Document two IDLE on MacOS issues. (pythonGH-10456)
The System Preferences Dock "prefer tabs always" setting disables some IDLE features. Menus are a bit different than as described for Windows and Linux.
1 parent b9498e2 commit 50ff02b

File tree

3 files changed

+37
-13
lines changed

3 files changed

+37
-13
lines changed

Doc/library/idle.rst

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,17 @@ Menus
4040
-----
4141

4242
IDLE has two main window types, the Shell window and the Editor window. It is
43-
possible to have multiple editor windows simultaneously. Output windows, such
44-
as used for Edit / Find in Files, are a subtype of edit window. They currently
45-
have the same top menu as Editor windows but a different default title and
46-
context menu.
43+
possible to have multiple editor windows simultaneously. On Windows and
44+
Linux, each has its own top menu. Each menu documented below indicates
45+
which window type it is associated with.
4746

48-
IDLE's menus dynamically change based on which window is currently selected.
49-
Each menu documented below indicates which window type it is associated with.
47+
Output windows, such as used for Edit => Find in Files, are a subtype of editor
48+
window. They currently have the same top menu but a different
49+
default title and context menu.
50+
51+
On MacOS, there is one application menu. It dynamically changes according
52+
to the window currently selected. It has an IDLE menu, and some entries
53+
described below are moved around to conform to Apple guidlines.
5054

5155
File menu (Shell and Editor)
5256
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -792,6 +796,13 @@ changed via Configure IDLE on the Option menu. Keys can be user defined;
792796
IDLE ships with four built-in key sets. In addition, a user can create a
793797
custom key set in the Configure IDLE dialog under the keys tab.
794798

799+
IDLE on MacOS
800+
^^^^^^^^^^^^^
801+
802+
Under System Preferences: Dock, one can set "Prefer tabs when opening
803+
documents" to "Always". This setting is not compatible with the tk/tkinter
804+
GUI framework used by IDLE, and it breaks a few IDLE features.
805+
795806
Extensions
796807
^^^^^^^^^^
797808

Lib/idlelib/help.html

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,15 @@ <h3>Navigation</h3>
122122
<div class="section" id="menus">
123123
<h2>Menus<a class="headerlink" href="#menus" title="Permalink to this headline"></a></h2>
124124
<p>IDLE has two main window types, the Shell window and the Editor window. It is
125-
possible to have multiple editor windows simultaneously. Output windows, such
126-
as used for Edit / Find in Files, are a subtype of edit window. They currently
127-
have the same top menu as Editor windows but a different default title and
128-
context menu.</p>
129-
<p>IDLE’s menus dynamically change based on which window is currently selected.
130-
Each menu documented below indicates which window type it is associated with.</p>
125+
possible to have multiple editor windows simultaneously. On Windows and
126+
Linux, each has its own top menu. Each menu documented below indicates
127+
which window type it is associated with.</p>
128+
<p>Output windows, such as used for Edit =&gt; Find in Files, are a subtype of editor
129+
window. They currently have the same top menu but a different
130+
default title and context menu.</p>
131+
<p>On MacOS, there is one application menu. It dynamically changes according
132+
to the window currently selected. It has an IDLE menu, and some entries
133+
described below are moved around to conform to Apple guidlines.</p>
131134
<div class="section" id="file-menu-shell-and-editor">
132135
<h3>File menu (Shell and Editor)<a class="headerlink" href="#file-menu-shell-and-editor" title="Permalink to this headline"></a></h3>
133136
<dl class="docutils">
@@ -753,6 +756,12 @@ <h3>Setting preferences<a class="headerlink" href="#setting-preferences" title="
753756
IDLE ships with four built-in key sets. In addition, a user can create a
754757
custom key set in the Configure IDLE dialog under the keys tab.</p>
755758
</div>
759+
<div class="section" id="idle-on-macos">
760+
<h3>IDLE on MacOS<a class="headerlink" href="#idle-on-macos" title="Permalink to this headline"></a></h3>
761+
<p>Under System Preferences: Dock, one can set “Prefer tabs when opening
762+
documents” to “Always”. This setting is not compatible with the tk/tkinter
763+
GUI framework used by IDLE, and it breaks a few IDLE features.</p>
764+
</div>
756765
<div class="section" id="extensions">
757766
<h3>Extensions<a class="headerlink" href="#extensions" title="Permalink to this headline"></a></h3>
758767
<p>IDLE contains an extension facility. Preferences for extensions can be
@@ -808,6 +817,7 @@ <h3><a href="../contents.html">Table of Contents</a></h3>
808817
<li><a class="reference internal" href="#help-and-preferences">Help and preferences</a><ul>
809818
<li><a class="reference internal" href="#help-sources">Help sources</a></li>
810819
<li><a class="reference internal" href="#setting-preferences">Setting preferences</a></li>
820+
<li><a class="reference internal" href="#idle-on-macos">IDLE on MacOS</a></li>
811821
<li><a class="reference internal" href="#extensions">Extensions</a></li>
812822
</ul>
813823
</li>
@@ -889,7 +899,7 @@ <h3>Navigation</h3>
889899
<br />
890900
<br />
891901

892-
Last updated on Nov 06, 2018.
902+
Last updated on Nov 10, 2018.
893903
<a href="https://docs.python.org/3/bugs.html">Found a bug</a>?
894904
<br />
895905

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Document two IDLE on MacOS issues. The System Preferences Dock "prefer tabs
2+
always" setting disables some IDLE features. Menus are a bit different than
3+
as described for Windows and Linux.

0 commit comments

Comments
 (0)