2451 Commits

Author SHA1 Message Date
Terry Jan Reedy
ed102a8c5a
[3.13] gh-135142: Initial 3.15 News3.txt entries (GH-144200) (#144202)
(cherry picked from commit 29f1e778faaa31479e4ef84e2fb37a7a53984550)
2026-01-23 22:16:21 -05:00
Miss Islington (bot)
746d2f979b
[3.13] gh-143774 - Improve IDLE Format Paragraph doc (GH-143775) (#144063)
gh-143774 - Improve IDLE Format Paragraph doc (GH-143775)

Add a reminder to not rewrap code line to the Menu => Format => Reformat Paragraph entry.
In Editing and Nagivagion, add a new 'Format block' subsection that defines 'paragraph'
to better match what is dependably handled as more or less expected.
In particular, specify equal indents and that the resulting indent equals original indent.
Also mention that selections are expanded to complete lines and how to modify max length.

(Also fix a couple case errors in cross references.)
(cherry picked from commit fa3abf5a51d42b2d62e1bc89e9465b398a567e94)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2026-01-20 09:32:55 +00:00
Terry Jan Reedy
92d80c6067
[3.13] gh-139707: Copy-strip change to idle.rst into idlelib (#143767)
Copy net new text in idle.rst from main to 3.13.
Make 3.13 docs and copy-strip idle.html to idlelib/help.html.
See https://github.com/python/cpython/issues/139707#issuecomment-3737374788
and PR #143718 message for more.

* Revert url to 'main' from '3.13'

The branch in the source links in the revised help.html
become '3.13' instead of 'main' because the html
was generated from an edited 3.13 version of idle.rst
instead being backported from main.  This reversion
avoids the possibility of future backport merge conflicts.

The version makes no difference to the Help/IDLE doc display as
the url is currently neither displayed nor linked to the link title
-- 'Lib/idlelib'.  If we do make the links live, we can use
sys.version_info to replace 'main' when main is no longer the source branch.
2026-01-12 22:58:30 -05:00
Miss Islington (bot)
813bcffffc
[3.13] GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418) (#142551)
GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418)
(cherry picked from commit c5825ff4c9e26e17224c466db6b3bd49d44c26e0)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-12-11 02:15:14 +00:00
Miss Islington (bot)
89cb8aa3ba
[3.13] Minor fixes to idle.rst and regenerate help.html (GH-140037) (#141122)
Minor fixes to `idle.rst` and regenerate `help.html` (GH-140037)
(cherry picked from commit 4e6e208be9d1c52d1b55a8bb3a83682cb078e55e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-06 12:11:50 +00:00
Miss Islington (bot)
54e5dea534
[3.13] gh-129876: Move misplaced IDLE news item (GH-141118) (#141120)
gh-129876: Move misplaced IDLE news item (GH-141118)
(cherry picked from commit 6a7c969d003d3ba932d5c7f14a58e2a6408f4a3d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-11-06 03:34:15 -05:00
Miss Islington (bot)
b2ed70f016
[3.13] Lib/idlelib/idle_test/__init__.py: remove commented out duplicate code (GH-140259) (#140323)
`Lib/idlelib/idle_test/__init__.py`: remove commented out duplicate code (GH-140259)
(cherry picked from commit 790cdae5a0295586a55f00a57ed24a86b83928dc)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-19 04:49:57 -04:00
Miss Islington (bot)
6a9908ee94
[3.13] gh-96491: Deduplicate version in IDLE shell title (GH-139841) (#139932)
gh-96491: Deduplicate version in IDLE shell title (GH-139841)

Saving to a file added both the filename and repeated the version.
---------
(cherry picked from commit d4e5802588db3459f04d4b8013cc571a8988e203)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-10-11 02:00:21 +00:00
Stan Ulbrych
0b302280af
[3.13] gh-71648: Optimize PNG files (GH-138842) (#138852)
* Only keep > 1 kb savings
(cherry picked from commit 2e8f64c9317a327a2be1ab8031844ef3967c1040)
2025-09-14 08:29:59 -07:00
Miss Islington (bot)
b5017de2e7
[3.13] gh-95844: Move help_url code to a help module function (GH-129971) (#138485)
gh-95844: Move help_url code to a help module function (GH-129971)

---------
(cherry picked from commit 3b4cd885634abc029b409cb566e8d9a530d061f8)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-09-03 21:49:29 +00:00
Miss Islington (bot)
7e4afe0d52
[3.13] gh-138081: Fix/remove incorrect links in idlelib/HISTORY.txt (GH-138091) (#138125)
gh-138081: Fix/remove incorrect links in `idlelib/HISTORY.txt` (GH-138091)
(cherry picked from commit be24ff0b5738365bdc5921689feee9c2c68eebc3)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
2025-08-25 02:10:51 +00:00
Miss Islington (bot)
76dd0eee05
[3.13] Doc: Fix duplicate words in idlelib (GH-136089) (#136091)
Doc: Fix duplicate words in idlelib (GH-136089)
(cherry picked from commit f04d2b8819eb37d5439b7437f1e80a1e5c5c4f07)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-06-29 07:09:36 +00:00
Miss Islington (bot)
ac8b868f3c
[3.13] IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908) (#136000)
IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908)
(cherry picked from commit 642e5dfc74310d15bb81f8e94167590380a5fbfb)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-06-26 20:42:29 +00:00
Miss Islington (bot)
68f8eed6ff
[3.13] gh-129876: Update IDLE News3.txt to May 2025 (GH-135139) (#135141)
gh-129876: Update IDLE News3.txt to May 2025 (GH-135139)
(cherry picked from commit 0df15d0d4d55dcf7b7a7f4b2985bf84fd092d257)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-06-04 15:50:21 +00:00
Miss Islington (bot)
e2ad2c8042
[3.13] gh-112936: Fix IDLE: no Shell menu item in single-process mode (GH-126598) (GH-133310)
(cherry picked from commit 7e7e49be78e26d0a3b861a04bbec1635aabb71b9)

Co-authored-by: Zhikang Yan <2951256653@qq.com>
2025-05-02 17:26:26 +00:00
Miss Islington (bot)
270ec26c51
[3.13] gh-69001: Convert links to more usable buttons (GH-129591) (#130338)
gh-69001: Convert links to more usable buttons (GH-129591)

In Lib/idlelib/help_about.py, there are 2 links that are not underlined or colored, hence hard to tell that clicking works.  All buttons might get converted to colored and underlined links in the future.
---------
(cherry picked from commit ed831b95a231ef949da13a261b40ee1ea0e126d7)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-20 08:54:31 +00:00
Miss Islington (bot)
dee4f2c2a2
[3.13] gh-68400: Remove outdated 2.7 comment (GH-129919) (#129937)
(cherry picked from commit d9bf3c16e53f04b600e42cd0ac560820e3522b57)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-02-10 05:16:09 +00:00
Miss Islington (bot)
f7d885a8ff
[3.13] gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859) (#129884)
gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859)

In `help.copy_strip`, only copy the text `<section>`.  In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html.  Add a reminder at the top of idle.rst to run copy_strip after changes.
---------

(cherry picked from commit 6fbf15f98e04f582aeccf5334a94840149ff7cd5)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-09 04:19:36 -05:00
Terry Jan Reedy
c28eed3c27
[3.13] gh-129876: Initial 3.14 News3.txt entries (GH-129881) (#129882) 2025-02-09 07:36:37 +00:00
Miss Islington (bot)
1a288989bf
[3.13] gh-112953: Update news to finish 3.13 as main (GH-129877) (#129878)
Entry for patch to 3.13.rc3
(cherry picked from commit f72977b2f4a29063ae3019e50360f4af869f4149)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-09 06:37:29 +00:00
Miss Islington (bot)
3cf859056a
[3.13] gh-129699: Add description to IDLE doc title (GH-129727) (#129864)
gh-129699: Add description to IDLE doc title (GH-129727)

Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.)
---------

(cherry picked from commit 33a7094aa680bca66582fec4dcda7d150eb90cd8)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-08 20:14:47 +00:00
Miss Islington (bot)
431fda202d
[3.13] gh-86206: Change IDLE splash line (GH-129698) (#129717)
Replace references to boilerplate files available in About IDLE and instead suggest clicking Help menu.

(cherry picked from commit d83a8a26f5e321b26bec59f5fd47c9c46c16ab12)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-06 03:20:05 -05:00
Miss Islington (bot)
825c6e4dd7
[3.13] gh-69001: Replace maintainer email in IDLE credits (GH-129588) (#129713)
Instead, anyone requesting credit should submit a PR with contribution summary.
(Also fix typo in existing name.)
(cherry picked from commit 76e018294801ab95f30756c702b63bf6b4c23310)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-02-06 07:37:50 +00:00
Terry Jan Reedy
1499f66c4c
[3.13] gh-71339: Use new assertion methods in test_idle (#129314)
Revise 10 tests in 7 files, with 1 test split into 2.
(cherry picked from commit dbb25ce)
2025-01-26 09:42:08 +00:00
Miss Islington (bot)
f8b4e20137
[3.13] gh-127060: Disable traceback colors in IDLE (GH-128028) (#128052)
Set TERM environment variable to "dumb" to disable traceback colors
in IDLE, since IDLE doesn't understand ANSI escape sequences.

(cherry picked from commit 559b0e7013f9cbf42a12fe9c86048d5cbb2f6f22)

Co-authored-by: Victor Stinner <vstinner@python.org>
2024-12-18 05:58:57 +00:00
Miss Islington (bot)
6fb48c69fc
[3.13] Fix idlelib typos (GH-125484) (#125487)
Fix idlelib typos (GH-125484)

Propagate fixes in Doc/library/idle.rst to help.html.
Change 'interruptable' to 'interruptible' in run.py.
The latter was reported by ember91 in PR 125473.
(cherry picked from commit 3fea1d000ef0a74062fd3fe218ad94618b08d9f2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-10-14 21:38:40 +00:00
Miss Islington (bot)
6fe746d702
[3.13] gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975) (#125061)
gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975)

Increase currently inadequate vertical spacing for the IDLE browsers (path,
module, and stack) on high-resolution monitors.
---------

(cherry picked from commit c5df1cb7bde7e86f046196b0e34a0b90f8fc11de)

Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-10-07 19:25:26 +00:00
Miss Islington (bot)
4a58bdb49e
[3.13] gh-120104: IDLE: Fix padding in config and search dialogs (GH-120107) (#122740)
gh-120104: IDLE: Fix padding in config and search dialogs (GH-120107)
(cherry picked from commit 4b66b6b7d6e65f9eb2d61435b9b37ffeb7bb00fb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-09-27 15:19:56 -07:00
Terry Jan Reedy
2df77c8daf
[3.13] Backport idlelib typos (#124325)
See #123597.  The typo in Icon/README.txt was fixed
in the unmerged 3.13 backport #123608 of the
PR that added the text with the typo.

(cherry picked from commit 1f4a49e)

Co-authored-by: abstractee
2024-09-27 15:19:44 -07:00
Miss Islington (bot)
845e039999
[3.13] gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (GH-124310) (#124318)
gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (GH-124310)

https://github.com/python/cpython/issues/88496 replaced text.update with text.update_idletasks in colorizer.py and outwin.py to fix test failures on macOS.  While theoretically correct, the result was Shell freezing when receiving continuous short strings to print.  Test: `while 1: 1`.

The guess is that there is no idle time in which to do the screen update.  Reverting the change in one of the files,
outwin, fixes the issue.  Colorizer runs ever 1/20 second and seems to work fine.

When running test-outwin on macOS, alias 'update'
to 'update_idletasks on the text used for testing.
(cherry picked from commit d5f95ec07bb47a4d6554e04d13a979dbeac05f74)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-09-27 15:19:28 -07:00
Miss Islington (bot)
a573b23124
[3.13] Further revise idlelib/Icons/README.text (GH-123364) (#123608)
* Further revise idlelib/Icons/README.text (GH-123364)

In particular, add trademark derivative approval information.
(cherry picked from commit fe85a8291d9aa11c9ce9e207c39ea0a0c35f9625)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

* Update Lib/idlelib/Icons/README.txt

---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-09-24 11:22:38 -07:00
Miss Islington (bot)
59e2a0922b
[3.13] Rewrite idlelib/Icons/README.txt (GH-123329) (#123330)
(cherry picked from commit 6401cdf90810252a0de1775cac2f4f2f7c6b1d5a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-09-02 17:56:16 +02:00
Miss Islington (bot)
39061814f2
[3.13] Fixes typo in idlelib/idle_test/example_stub.pyi (GH-122520) (#122738)
Fixes typo in idlelib/idle_test/example_stub.pyi (GH-122520)

(cherry picked from commit dbdbef3668293abdceac2b8a7b3e4615e6bde143)

Co-authored-by: Jonathon Vandezande <jevandezande@gmail.com>
2024-09-02 11:26:55 +00:00
Miss Islington (bot)
29733b084d
[3.13] gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-120605) (#122739)
gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-120605)

On recent versions of macOS (sometime between Catalina and Sonoma 14.5), the default Hovertip foreground color changed from black to white, thereby matching the background. This might be a matter of matching the white foreground of the dark-mode text. The unreadable result is shown here (GH-120083 (comment)).

The foreground and background colors were made parameters so we can pass different colors for future additional hovertips in IDLE.
---------

(cherry picked from commit 5a7f7c48644baf82988f30bcb43e03dcfceb75dd)

Co-authored-by: John Riggles <jriggles@icloud.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-09-02 12:50:39 +02:00
Sergey B Kirpichev
c8f4069ab1
[3.13] gh-121804: Always show error location for SyntaxError's in new repl (GH-121886) (#123148)
(cherry picked from commit 354d55eb1fa40f272419aa6459ee5d2c4804c8ea)
2024-08-19 20:01:58 +01:00
Miss Islington (bot)
a21317f07b
[3.13] GH-122482: Make About IDLE direct discussion to DPO (GH-122483) (#122485)
Currently, idle-dev@python.org and idle-dev mailing list
serve to collect spam (90+%).  Change About IDLE to direct
discussions to discuss.python.org.  Users are already
doing so.
(cherry picked from commit 29c04dfa2718dd25ad8b381a1027045b312f9739)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-07-30 22:54:01 +00:00
Miss Islington (bot)
5a8e1373fe
[3.13] gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (GH-121876) (#121911)
gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (GH-121876)

Problem occurred when attribute xyz could not be pickled.
Since this is not trivial to selectively fix, block all
attributes (other than 'width').  IDLE does not access them
and they are private implementation details.
(cherry picked from commit 58753f33e47fe48906883dc010771f68c13b7e52)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-07-17 14:10:13 +00:00
Miss Islington (bot)
bdcc738fec
[3.13] gh-121008: Fix idlelib.run tests (GH-121046) (#121049)
gh-121008: Fix idlelib.run tests (GH-121046)

When testing IDLE, don't create a Tk to avoid side effects such as
installing a PyOS_InputHook hook.
(cherry picked from commit 44eafd66882589d4f4eb569d70c49724da3e9291)

Co-authored-by: Victor Stinner <vstinner@python.org>
2024-06-26 14:08:31 +00:00
Xie Yanbo
9c7ac7d041
[3.13] Fix typos in documentation (GH-120338) (#120438)
(cherry picked from commit ce3879bd45e068f8e2a5a214acd234ca44cad53b)
2024-06-13 09:39:46 +03:00
Miss Islington (bot)
51724620e8
[3.13] gh-120417: Remove unused imports in the stdlib (GH-120420) (#120429)
gh-120417: Remove unused imports in the stdlib (GH-120420)
(cherry picked from commit 4c6d4f5cb33e48519922d635894eef356faddba2)

Co-authored-by: Victor Stinner <vstinner@python.org>
2024-06-12 19:27:32 +00:00
Miss Islington (bot)
f7303cd967
[3.13] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175) (#119289)
gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175)

------

(cherry picked from commit 538ed5e4818aa0d0aa759634e8bfa23e317434a1)

Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
2024-05-21 03:53:29 +00:00
Miss Islington (bot)
3b90807257
[3.13] IDLE: fix url in config.py comment (GH-119198) (#119199)
IDLE: fix url in config.py comment (GH-119198)
(cherry picked from commit 357f5a1f73684d0c126a5e8f79d76ff3641c4d52)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-05-20 06:27:51 +00:00
Serhiy Storchaka
65f5e586a1
gh-66410: Do not stringify arguments of Tkinter callback (GH-98592)
Callbacks registered in the tkinter module now take arguments as
various Python objects (int, float, bytes, tuple), not just str.
To restore the previous behavior set tkinter module global wantobject to 1
before creating the Tk object or call the wantobject() method of the Tk object
with argument 1.
Calling it with argument 2 restores the current default behavior.
2024-05-07 12:07:32 +00:00
Terry Jan Reedy
7758be4318
gh-78955: Use user-selected color theme for Help => IDLE Doc (#9502) 2024-05-06 03:55:56 -04:00
Pablo Galindo Salgado
345e1e04ec
gh-112730: Make the test suite resilient to color-activation environment variables (#117672) 2024-04-24 21:25:22 +01:00
Ronald Oussoren
b48101864c
gh-88516: show file proxy icon in IDLE editor windows on macOS (#112894)
The platform standard on macOS is to show a proxy icon for open
files in the titlebar of Windows. Make sure IDLE matches this
behaviour.

Don't use both the long and short names in the window title.
The behaviour of other editors (such as Text Editor) is to show
only the short name with the proxy icon.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-02-23 02:15:39 +00:00
Serhiy Storchaka
d2c4baa41f
gh-97928: Partially restore the behavior of tkinter.Text.count() by default (GH-115031)
By default, it preserves an inconsistent behavior of older Python
versions: packs the count into a 1-tuple if only one or none
options are specified (including 'update'), returns None instead of 0.
Except that setting wantobjects to 0 no longer affects the result.

Add a new parameter return_ints: specifying return_ints=True makes
Text.count() always returning the single count as an integer
instead of a 1-tuple or None.
2024-02-11 12:43:14 +02:00
Christopher Chavez
d25d4ee60c
gh-103820: IDLE: Do not interpret buttons 4/5 as scrolling on non-X11 (GH-103821)
Also fix test_mousewheel: do not skip a check which was broken due to incorrect
delta on Aqua and XQuartz, and probably not because of `.update_idletasks()`.
2024-02-02 10:38:43 +00:00
Terry Jan Reedy
6f4b242a03
gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)
Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'.
Suffix 'object' with '_'.
2024-01-18 04:39:12 +00:00
Terry Jan Reedy
4a32275389
gh-72284: Revise lists in IDLE doc (#114174)
Tkinter is a fact, not necessarily a feature.

Reorganize editor key bindings in a logical order
and remove those that do not work, at least on Windows.

Improve shell bindings list.
2024-01-17 07:52:32 +00:00