Commit graph

2300 commits

Author SHA1 Message Date
Miss Islington (bot)
1d4d44c385
bpo-45447: Add syntax highlighting for .pyi files in IDLE (GH-28950)
Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues.
Add util.py to contain objects that are used in multiple idlelib modules
and have no dependencies on any of them.

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 50cf4991c4)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 9fabcfbe68)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-02-12 17:19:25 -08:00
Miss Islington (bot)
ee3d050e85
Optimize images by IMGbot (GH-21348)
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
(cherry picked from commit ba650af7d6)

Co-authored-by: Manish Kumar  <manishprivet@protonmail.com>
2022-02-03 23:15:17 -08:00
Miss Islington (bot)
663370aea5
bpo-46588: fix typo in test_calltip.py (GH-31119)
(cherry picked from commit 222865daab)

Co-authored-by: Caio Agiani <agianicaio@gmail.com>
2022-02-03 21:05:42 -08:00
Miss Islington (bot)
dc315f30f8
bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)
On Windows, one had to Tab or click on the entry box
to get a cursor and be able to enter anything.
(cherry picked from commit d1df81a730)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-02-03 14:33:26 -08:00
Miss Islington (bot)
cf7cb1a2bf
bpo-45975: IDLE - Remove extraneous parens (GH-31107)
mistakenly included in 3 files in previous PR
and backported both to 3.10 and 3.9.
(cherry picked from commit 916d0d822c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-02-03 12:44:23 -08:00
Terry Jan Reedy
fafd2dadf6
[3.9] bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)
co-authored by Nick Drozd
cherrypicked from 51a95be1d0
2022-02-02 22:12:38 -05:00
Miss Islington (bot)
a1869e385b
bpo-46591: Make About IDLE doc link label clickable (GH-30251)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 53c7808057)

Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
2022-02-01 17:47:09 -08:00
Terry Jan Reedy
287ceca2d6
bpo-46496: news39 for bpo45296 (#30949)
(cherry picked from commit 9f0881476e)
2022-01-26 23:10:00 -05:00
Miss Islington (bot)
bc7d96ee33
bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)
In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current
one) and 'Exit' is now 'Exit IDLE' (by closing all windows).
In Shell, 'quit()' and 'exit()' mean 'close Shell'.
If there are no other windows, this also exits IDLE.
(cherry picked from commit fcde0bc10d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-01-26 19:41:13 -08:00
Terry Jan Reedy
3178efbf06
[3.9] bpo-46496: Update IDLE News to 2021 Jan 24 (GH-30877)
Cherry picked from b1a3446f07
2022-01-25 03:28:53 -05:00
Terry Jan Reedy
98cabce599
bpo-41841: update idlelib News up to 3.10.0 (GH-30871) 2022-01-25 02:01:25 -05:00
Christian Clauss
4346b81cc6
[3.9] Fix typos in the Lib directory (GH-28775) (GH-28803)
Fix typos in the Lib directory as identified by codespell.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 745c9d9dfc)

Automerge-Triggered-By: GH:JulienPalard
2021-10-07 08:42:38 -07:00
Miss Islington (bot)
813fbba4ca
bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28601)
IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z.
(cherry picked from commit e649e0658f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-09-28 14:35:04 +02:00
Łukasz Langa
5482db5800
[3.9] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28512)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 8f943ca257)

Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
2021-09-22 17:32:04 +02:00
Miss Islington (bot)
f71b86e0ae
bpo-45020: Don't test IDLE with frozen module. (GH-28344)
Otherwise, test would need special import.
(cherry picked from commit 369bf949cc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-09-15 00:34:19 -07:00
Miss Islington (bot)
1b02e29fb2
IDLE: adjust Python version in doc url for 3.10+ (GH-28228) (GH-28282)
Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit b74c819fab)

Co-authored-by: giovanniwijaya <16949408+giovanniwijaya@users.noreply.github.com>
2021-09-10 18:22:54 -04:00
Miss Islington (bot)
9ad2184d67
[3.8] Update idlelib/help.html to include idle.rst spelling fix (GH-28191) (GH-28193)
The idle.rst fix was GH-27903 two weeks ago.
(cherry picked from commit f05ad92028)

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

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-09-07 01:29:06 -04:00
Miss Islington (bot)
2280bc1163
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
(cherry picked from commit 22fe0eb13c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-08-31 12:24:48 -07:00
Miss Islington (bot)
c1db759879
bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)
(cherry picked from commit 54f100514b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-31 10:53:42 -07:00
Łukasz Langa
168879e366
[3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)
(cherry picked from commit be42c06bb0)

Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
2021-07-30 16:34:04 +02:00
Miss Islington (bot)
a9e20cf7bb
bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)
In particular, when running with tk8.6.8, as in PSF 3.9.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 3ec3ee7d2e)

Co-authored-by: Kaustubh J <kaustubhkj@gmail.com>
2021-06-11 19:24:40 -04:00
Miss Islington (bot)
9b889433c7
bpo-33962: Use ttk spinbox for IDLE indent space config (GH-22954)
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 42d5a4fc3b)

Co-authored-by: Mark Roseman <mark@markroseman.com>
2021-06-10 12:40:39 -07:00
Miss Islington (bot)
d9f38d77c8
bpo-40468: Split IDLE settings General tab (GH-26621)
Replace it with Windows tab for Shell and Editor options
and Shell/Ed for options exclusive to one of them.

Create room for more options and make dialog shorter,
to better fit small windows.
(cherry picked from commit 275d5f7957)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-09 13:41:24 -07:00
Miss Islington (bot)
c8353239ed
bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)
(cherry picked from commit 5571cabf1b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-08 19:05:28 -07:00
Miss Islington (bot)
c03f0ab259
bpo-40468: Move IDLE helplist settings to extensions page of dialog. (GH-26593)
These are the settings that extend the help menu.  Moving them shortens the dialog and will help with it being too tall for small screens.
(cherry picked from commit ab36b9f834)
2021-06-08 17:26:56 -04:00
Miss Islington (bot)
21a56a4bce
bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winconfig_event() (GH-26404)
Since the <Configure> event may occur after the
completion window is gone, catch potential
TclError exceptions when accessing acw.

(cherry picked from commit 4e2e5c1c4f)
2021-05-28 09:39:59 +03:00
Miss Islington (bot)
65fb9a2701
bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)
(cherry picked from commit abc4bd5db9)

Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
2021-05-27 08:08:00 -07:00
Tal Einat
0bcd1515aa
[3.9] backport non-content changes to IDLE's help.html (GH-26239)
Followup to GH-25851 to synchonize with 3.10.
Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
2021-05-19 07:59:38 -04:00
Serhiy Storchaka
9a165399ae
[3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window (GH-25187). (GH-25588)
(cherry picked from commit 3bb3fb3be0)
2021-04-25 13:49:31 +03:00
Miss Islington (bot)
987b65e956
Reformat idlelib colorizer (GH-25479)
Also replace if-then and and-or with conditional expressions.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 702a0885ba)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2021-04-22 23:32:33 -04:00
Miss Islington (bot)
84694c3e7a
bpo-42225: IDLE - document two unix-related problems. (GH-25078)
1. Bad IP masquerade rules can prevent startup.
2. X cannot handle some complex colored chars.
(cherry picked from commit 1b4a9c7956)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-03-30 22:44:26 -07:00
Terry Jan Reedy
d81a20454e
[3.9] bpo-41841: revise header (GH-24634) 2021-02-23 21:32:20 -05:00
Miss Islington (bot)
e202f1e4db
bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)
Printing to IDLE's Shell is often slower than printing to a system
terminal, but it can be made faster by pre-formatting a single
string before printing.
(cherry picked from commit 2827e8a177)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-23 17:03:37 -08:00
Miss Islington (bot)
693aeacf88
bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
In the Running User Code section, gather together paragraphs about two
processes and the sys.stdstream replacements, preparing to add another.
(cherry picked from commit 4cf7bb8e22)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-21 00:07:33 -08:00
Miss Islington (bot)
bf782b2636
bpo-43008: Add 'Patch by Ken Hilton' (GH-24370) (#24374)
(cherry picked from commit 11d75ec807)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-29 13:51:46 -05:00
Miss Islington (bot)
6d87dec581
bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)
Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 23a567c11c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-28 15:38:19 -08:00
Miss Islington (bot)
68102fb998
bpo-43008: Make IDLE respect sys.excepthook (GH-24302)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 7a34380ad7)

Co-authored-by: Ken <kenny2minecraft@gmail.com>
2021-01-26 16:24:14 -08:00
Terry Jan Reedy
fd668bc62b
[3.9] bpo-41841: Prepare IDLE NEWS for 3.9.2 (#GH-4343) 2021-01-26 13:59:18 -05:00
Miss Islington (bot)
26af2fae18
bpo-43013: Fix old tkinter module names in idlelib (GH-24326)
Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and
'tkMessageBox' and remove 'tk'.  Just lowercase 'tkFont' as 'font'
is already used.  Adjust import.
(cherry picked from commit 879986d8a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-25 08:25:39 -05:00
Miss Islington (bot)
ff06957710
bpo-43013: Update idlelib code to 3.x (GH-24315)
Remove 9 remaining '(object)' occurrences in class headers in idlelib
and 25 '()' occurrences in idlelib.idle_test class headers.
(cherry picked from commit 8dfe15625e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-24 15:36:02 -08:00
Miss Islington (bot)
799f8489d4
bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)
If __repr__ uses instance attributes, as normal, and one steps
through the __init__ method, debugger may try to get repr before
the instance attributes exist.  reprlib.repr handles the error.
(cherry picked from commit 81f87bbf9f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-09 23:30:43 -08:00
Terry Jan Reedy
d82392face
[3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
Make menu items work with formatter, add docstrings, add 100% tests.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit e40e2a2cc9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2021-01-05 03:25:57 -05:00
Serhiy Storchaka
87e7a14ee3
[3.9] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781) (GH-23853)
* Tkinter functions and constructors which need a default root window
  raise now RuntimeError with descriptive message instead of obscure
  AttributeError or NameError if it is not created yet or cannot
  be created automatically.

* Add tests for all functions which use default root window.

* Fix import in the pynche script.

(cherry picked from commit 3d569fd6dc)
2020-12-19 13:08:07 +02:00
Miss Islington (bot)
99d37a0ee8
bpo-33610: Edit idlelib.codecontext (GH-23773) (GH-23775)
Add sentence to module docstring and import tkinter items.
(cherry picked from commit 6f79e60b66)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-12-15 07:51:56 -05:00
Miss Islington (bot)
2a9a883d36
bpo-42508: Keep IDLE running on macOS (GH-23577) (GH-23669)
Remove obsolete workaround that prevented running files with
shortcuts when using new universal2 installers built on macOS 11.
Ignore buggy 2nd run_module_event call.
(cherry picked from commit 57e5113610)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-12-06 22:48:48 -05:00
Miss Islington (bot)
ff51e5ec26
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570) (GH-23571)
restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.)
(cherry picked from commit e41bfd15dd)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-30 17:36:06 -05:00
Miss Islington (bot)
dd20643b14
bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)
(cherry picked from commit 453bc1da20)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-21 21:30:46 -08:00
Miss Islington (bot)
4dd2112a1d
bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)
Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
(cherry picked from commit 7ddbaa7a1b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-19 23:28:21 -08:00
Miss Skeleton (bot)
79e9f06149
bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)
They were occurring with both repeated 'force-calltip' invocations and by typing parentheses
 in expressions, strings, and comments in the argument code.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit da7bb7b4d7)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2020-11-01 20:49:39 -08:00
Miss Skeleton (bot)
9cf26b00e4
bpo-33987: Add master ttk Frame to IDLE search dialogs (GH-22942)
(cherry picked from commit 5df6c99cb4)

Co-authored-by: Mark Roseman <mark@markroseman.com>
2020-10-24 20:36:55 -07:00