summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-121008: Fix idlelib.run tests (GH-121046) (#121049)Miss Islington (bot)2024-06-261-6/+13
| | | | | | | | | 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>
* [3.13] Fix typos in documentation (GH-120338) (#120438)Xie Yanbo2024-06-133-5/+5
| | | (cherry picked from commit ce3879bd45e068f8e2a5a214acd234ca44cad53b)
* [3.13] gh-120417: Remove unused imports in the stdlib (GH-120420) (#120429)Miss Islington (bot)2024-06-121-1/+1
| | | | | | gh-120417: Remove unused imports in the stdlib (GH-120420) (cherry picked from commit 4c6d4f5cb33e48519922d635894eef356faddba2) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) ↵Miss Islington (bot)2024-05-213-9/+19
| | | | | | | | | | | 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>
* [3.13] IDLE: fix url in config.py comment (GH-119198) (#119199)Miss Islington (bot)2024-05-201-1/+1
| | | | | | IDLE: fix url in config.py comment (GH-119198) (cherry picked from commit 357f5a1f73684d0c126a5e8f79d76ff3641c4d52) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-66410: Do not stringify arguments of Tkinter callback (GH-98592)Serhiy Storchaka2024-05-071-0/+1
| | | | | | | | | 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.
* gh-78955: Use user-selected color theme for Help => IDLE Doc (#9502)Terry Jan Reedy2024-05-062-2/+7
|
* gh-112730: Make the test suite resilient to color-activation environment ↵Pablo Galindo Salgado2024-04-241-0/+3
| | | | variables (#117672)
* gh-88516: show file proxy icon in IDLE editor windows on macOS (#112894)Ronald Oussoren2024-02-231-1/+10
| | | | | | | | | | | | | 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>
* gh-97928: Partially restore the behavior of tkinter.Text.count() by default ↵Serhiy Storchaka2024-02-111-1/+1
| | | | | | | | | | | | | (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.
* gh-103820: IDLE: Do not interpret buttons 4/5 as scrolling on non-X11 ↵Christopher Chavez2024-02-023-14/+23
| | | | | | | (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()`.
* gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)Terry Jan Reedy2024-01-187-42/+44
| | | | | Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'.
* gh-72284: Revise lists in IDLE doc (#114174)Terry Jan Reedy2024-01-172-38/+31
| | | | | | | | | 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.
* gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168)Terry Jan Reedy2024-01-171-1/+1
| | | | | This matches Firefox format. Edge double-spaces non-simple list but I think it looks worse.
* Fix 'expresion' typo in IDLE doc (#114130)Terry Jan Reedy2024-01-161-48/+71
| | | The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying.
* gh-113903: Fix an IDLE configdialog test (#113973)Terry Jan Reedy2024-01-122-16/+15
| | | | | | | | | | | test_configdialog.HighPageTest.test_highlight_target_text_mouse fails if a line of the Highlight tab text sample is not visible. If so, bbox() in click_char() returns None and the unpacking iteration fails. This occurred on a Devuan Linux system. Fix by moving the 'see character' call inside click_char, just before the bbox call. Also, reduce the click_char calls to just one per tag name and replace the other nested function with a dict comprehension.
* gh-113729: Fix IDLE's Help -> "IDLE Help" menu bug in 3.12.1 and 3.11.7 ↵Ronald Oussoren2024-01-064-20/+25
| | | | | (#113731) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-57795: Add news to idlelib/News3.txt (#113522)Terry Jan Reedy2023-12-271-0/+4
|
* gh-57795: IDLE: Enter the selected text when opening the "Replace" dialog ↵Zackery Spytz2023-12-271-16/+7
| | | | | | (GH-17593) Co-authored-by: Roger Serwy <roger.serwy@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-81682: Fix test failures when CPython is built without docstrings (GH-113410)Serhiy Storchaka2023-12-231-0/+6
|
* gh-113269: IDLE - Fix test_editor hang (macOS) (#113271)Terry Jan Reedy2023-12-192-1/+3
| | | | Hangs on installed 3.13.0a2 on macOS Catalina. Behavior on installed 3.12.1 and 3.11.7 is unknown.
* IDLE: Add util and stub example comments (#113222)Terry Jan Reedy2023-12-172-3/+5
|
* gh-112953: Rename idlelib/NEWS.txt to News3.txt and update (#112988)Terry Jan Reedy2023-12-123-5/+17
|
* GH-83162: Rename re.error for better clarity. (#101677)achhina2023-12-112-2/+2
| | | | | | | | | Renamed re.error for clarity, and kept re.error for backward compatibility. Updated idlelib files at TJR's request. --------- Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-112898: warn about unsaved files when quitting IDLE on macOS (#112939)Ronald Oussoren2023-12-111-1/+1
| | | | | | | | | | * gh-112898: warn about unsaved files when quitting IDLE on macOS Implement the TK function ``::tk::mac::Quit`` on macOS to ensure that IDLE asks about saving unsaved files when quitting IDLE. Co-authored-by: Christopher Chavez chrischavez@gmx.us
* IDLE: Tweak iomenu.IOBinding.maybesave (#112914)Terry Jan Reedy2023-12-101-10/+11
| | | | Add docstring, use f-string, simplify code.
* gh-66819: More IDLE htest updates(4) (#112686)Terry Jan Reedy2023-12-0425-34/+62
| | | | Mostly double spacing before 'if __name__...'.
* gh-66819: More IDLE htest updates(3) (#112683)Terry Jan Reedy2023-12-046-26/+27
| | | Revise spec-callable pairs from percolator to end.
* gh-66819: More IDLE htest updates(2) (#112642)Terry Jan Reedy2023-12-039-69/+70
| | | | | Examine and update spec -- callable pairs. Revise run method.
* gh-66819: More IDLE htest updates (#112574)Terry Jan Reedy2023-12-011-55/+52
| | | Revise htest.py docstring and move 2 specs to alphabetical position.
* IDLE: fix config_key htest (#112545)Terry Jan Reedy2023-11-302-2/+2
| | | Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested.
* IDLE: Fix test_debugger bug and buildbot failures (#112258)Terry Jan Reedy2023-11-191-5/+7
| | | | | | | | | Missing "requires('gui')" causes Tk() to fail when no gui. This caused CI Hypothesis test to fail, but I did not understand the its error message. Then buildbots failed. IdbTest failed on draft Bdb replacement because so different. Simplified version works on old and new.
* gh-79871: IDLE - Fix and test debugger module (#11451)Anthony Shaw2023-11-194-77/+396
| | | | | | | Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes. Expand test_debugger coverage from 19% to 66%. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-108303: Move config parser data to `Lib/test/configparserdata/` (gh-111879)Nikita Sobolev2023-11-091-4/+4
|
* gh-97928: Change the behavior of tkinter.Text.count() (GH-98484)Serhiy Storchaka2023-10-241-4/+3
| | | | | | | It now always returns an integer if one or less counting options are specified. Previously it could return a single count as a 1-tuple, an integer (only if option "update" was specified) or None if no items found. The result is now the same if wantobjects is set to 0.
* gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (#111053)Terry Jan Reedy2023-10-192-24/+22
| | | | | | Replace tuple value with internal name, removing numbers. Remove sorting of already ordered dislay names. Remove '[0]' indexing into now-gone tuple.
* gh-103737: IDLE - Remove unneeded .keys() for dict iteration (#110960)Terry Jan Reedy2023-10-188-26/+28
| | | | | Add comments where .keys() is needed. Leave debugger usages along because situation is unclear as indicated in expanded comment. Most testing is manual.
* IDLE: Condense run.main threading.Thread start. (#106125)Terry Jan Reedy2023-06-271-5/+6
| | | | Use daemon argument added in 3.3 and directly call .start. Remove now unused 'sockthread' name.
* gh-102832: IDLE - update stackviewer open (#105528)Terry Jan Reedy2023-06-081-2/+2
| | | Use 'last_exc' instead of 'last_value' in 3.12/3.
* gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer ↵Irit Katriel2023-06-084-52/+22
| | | | (#103339)
* gh-104972: Ensure that line attributes in tokens in the tokenize module are ↵Pablo Galindo Salgado2023-05-261-2/+2
| | | | correct (#104975)
* gh-104825: Remove implicit newline in the line attribute in tokens emitted ↵Pablo Galindo Salgado2023-05-241-2/+2
| | | | in the tokenize module (#104846)
* gh-104719: IDLE - test existence of all tokenize references. (#104767)Terry Jan Reedy2023-05-244-12/+52
| | | | | | Class editor.IndentSearcher contains all editor references to tokenize module. Module io tokenize reference cover those other modules. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-104719: IDLE - delete useless monkeypatch of tokenize (#104726)Terry Jan Reedy2023-05-211-12/+6
|
* gh-104499: Fix typo. (#104598)Terry Jan Reedy2023-05-181-1/+1
|
* gh-104499: IDLE - fix completions for tk aqua 8.7 (#104591)Terry Jan Reedy2023-05-182-7/+5
|
* gh-104496: IDLE - fix About for mixed tcl/tk versions (#104585)Terry Jan Reedy2023-05-173-23/+21
| | | Print both if they are different, as may happen in the future.
* GH-71383: IDLE - Document testing subsets of modules (#104463)Terry Jan Reedy2023-05-142-15/+28
|
* gh-75710: IDLE - add docstrings and comments to editor module (#104446)Terry Jan Reedy2023-05-131-25/+102
| | | | | Commit extracted from PR #3669. Will edit more later. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* gh-99836: IDLE - update news.txt for 3.12 (#104444)Terry Jan Reedy2023-05-131-2/+13
| | | | | * gh-99836: IDLE 3.12 news.txt * gh-99836: IDLE - update news.txt for 3.12