summaryrefslogtreecommitdiff
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36698: IDLE no longer fails when write non-encodable characters to ↵Serhiy Storchaka2019-10-084-67/+84
| | | | | | | stderr. (GH-16583) It now escapes them with a backslash, as the regular Python interpreter. Added the "errors" field to the standard streams.
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Serhiy Storchaka2019-10-044-58/+4
| | | | | | | | | | | | | (GH-16545) On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError).
* bpo-35379: When exiting IDLE, catch any AttributeError. (GH-16212)Terry Jan Reedy2019-09-172-4/+14
| | | | | One happens when EditorWindow.close is called twice. Printing a traceback, when IDLE is run from a terminal, is useless and annoying.
* bpo-38183: Test_idle ignores user config directory GH-16198)Terry Jan Reedy2019-09-164-35/+42
| | | | | It no longer tries to create or access .idlerc or any files within. Users must run IDLE to discover problems with saving settings.
* bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)Terry Jan Reedy2019-09-092-1/+4
| | | | This only happened when initializing the subprocess to run a module. This recent bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
* bpo-38041: Refine IDLE Shell restart lines. (GH-15709)Terry Jan Reedy2019-09-063-3/+41
| | | Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
* bpo-37902: IDLE: Add scrolling for IDLE browsers. (#15368)GeeTransit2019-09-045-21/+75
| | | | Modify the wheel event handler so it can also be used for module, path, and stack browsers. Patch by George Zhang.
* Fix idlelib.help comments (GH-15669)Terry Jan Reedy2019-09-041-24/+25
|
* bpo-38022: IDLE: upgrade help.html to sphinx 2.x HTML5 output (GH-15664)Tal Einat2019-09-032-167/+229
| | | | | The HTML5 output from Sphinx 2.x adds '<p>' tags within list elements. Using a new prevtag attribute, ignore these instead of emitting unwanted '\n\n'. Also stop looking for 'first' classes on tags (no longer present) and fix the bug of double-spacing instead of single spacing after <pre> blocks.
* bpo-35771: IDLE: Fix flaky tool-tip hover delay tests (GH-15634)Tal Einat2019-09-033-48/+66
| | | | Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup.
* IDLE: Fix 2 typos found by Min ho Kim. (GH-15617)Terry Jan Reedy2019-08-302-2/+2
|
* bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)Terry Jan Reedy2019-08-262-14/+9
| | | Cease turning SyntaxWarnings into SyntaxErrors.
* bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)Tal Einat2019-08-253-50/+26
| | | | | | | | | These were caused by keeping around a reference to the Squeezer instance and calling it's load_font() upon config changes, which sometimes happened even if the shell window no longer existed. This change completely removes that mechanism, instead having the editor window properly update its width attribute, which can then be used by Squeezer.
* Unmark files as executable that can't actually be executed. (GH-15353)Greg Price2019-08-201-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are plenty of legitimate scripts in the tree that begin with a `#!`, but also a few that seem to be marked executable by mistake. Found them with this command -- it gets executable files known to Git, filters to the ones that don't start with a `#!`, and then unmarks them as executable: $ git ls-files --stage \ | perl -lane 'print $F[3] if (!/^100644/)' \ | while read f; do head -c2 "$f" | grep -qxF '#!' \ || chmod a-x "$f"; \ done Looking at the list by hand confirms that we didn't sweep up any files that should have the executable bit after all. In particular * The `.psd` files are images from Photoshop. * The `.bat` files sure look like things that can be run. But we have lots of other `.bat` files, and they don't have this bit set, so it must not be needed for them. Automerge-Triggered-By: @benjaminp
* bpo-37849: IDLE: fix completion window positioning above line (GH-15267)Tal Einat2019-08-142-2/+18
|
* bpo-36419: IDLE - Refactor autocompete and improve testing. (#15121)Terry Jan Reedy2019-08-043-177/+216
|
* bpo-37748: Re-order the Run menu. (GH-15115)Terry Jan Reedy2019-08-043-23/+29
| | | Put the most common choice, Run Module, at the top.
* bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)Tal Einat2019-08-043-35/+61
| | | Convert mouse y to line number in the sidebar rather than the text.
* bpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)Terry Jan Reedy2019-07-311-0/+11
|
* Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)Terry Jan Reedy2019-07-306-9/+9
|
* bpo-34162: Update idlelib/news.txt. (#15011)Terry Jan Reedy2019-07-291-0/+24
|
* bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (#15010)Terry Jan Reedy2019-07-291-7/+29
| | | They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
* bpo-37692: Improve highlight config sample (#14983)Terry Jan Reedy2019-07-281-18/+17
| | | Use an example shell interaction in the sample and better labels for shell elements.
* bpo-37628: Fix IDLE config sample sizes (#14958)Tal Einat2019-07-274-51/+128
| | | | The boxes for the font and highlight samples are now constrained by the overall config dialog size. They gain scrollbars when the when a large font size makes the samples too large for the box.
* bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)Tal Einat2019-07-261-1/+1
|
* bpo-29446: IDLE -- add explicit imports (GH-14919)Terry Jan Reedy2019-07-231-0/+2
| | | Stop depending on tkinter import *.
* bpo-17535: IDLE editor line numbers (GH-14030)Tal Einat2019-07-2314-76/+862
|
* bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)Tal Einat2019-07-231-7/+31
|
* Fix typo found by Min ho Kim (#14879)Terry Jan Reedy2019-07-211-1/+1
|
* bpo-37627: Initialize IDLE Custom Run dialog with previous entries (#14870)Ngalim Siregar2019-07-213-10/+19
| | | Repeat the command line arguments most recently entered before so the user can edit them.
* bpo-33610: IDLE's code-context always shows current context immediately ↵Tal Einat2019-07-182-7/+21
| | | | | | | (GH-14821) Eliminate delay of up to 100ms and accompanying visual artifact. Fix bug of never showing context when hide and show.
* bpo-36390: Gather IDLE Format menu functions into format.py (#14827)Terry Jan Reedy2019-07-175-114/+112
| | | | | | Add two indent spec methods from editor and Rstrip to existing file. Tests are not added for indent methods because they need change in lights of 3.x's prohibition on mixing tabs and spaces.
* bpo-36390: IDLE: Combine region formatting methods. (GH-12481)Cheryl Sabella2019-07-176-327/+587
| | | | | Rename paragraph.py to format.py and add region formatting methods from editor.py. Add tests for the latter.
* bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)Tal Einat2019-07-174-99/+137
| | | | | | | | | | | * Only create CodeContext instances for "real" editors windows, but not e.g. shell or output windows. * Remove configuration update Tk event fired every second, by having the editor window ask its code context widget to update when necessary, i.e. upon font or highlighting updates. * When code context isn't being shown, avoid having a Tk event fired every 100ms to check whether the code context needs to be updated. * Use the editor window's getlineno() method where applicable. * Update font of the code context widget before the main text widget
* bpo-27452: IDLE: Cleanup config.py code (GH-14577)Cheryl Sabella2019-07-162-39/+9
|
* bpo-36390: simplify classifyws(), rename it and add unit tests (GH-14500)Tal Einat2019-07-112-23/+77
|
* bpo-26806: IDLE should run without docstrings (#14657)Terry Jan Reedy2019-07-092-8/+19
| | | After fcf1d00, IDLE startup failed with python compiled without docstrings.
* bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)Tal Einat2019-07-064-135/+173
| | | | | | | | This is done to compensate for the extra stack frames added by IDLE itself, which cause problems when setting the recursion limit to low values. This wraps sys.setrecursionlimit() and sys.getrecursionlimit() as invisibly as possible.
* Fix typo, 'widger' -> 'widget', in idlelib/tree.py (GH-14263)İsmail Arılık2019-06-201-1/+1
|
* bpo-37325: Fix focus traversal for 2 IDLE dialogs (#14209)Terry Jan Reedy2019-06-183-23/+41
| | | Tab now moves focus across and down for Help Source and Custom Run.
* bpo-5680: IDLE: Customize running a module (GH-13763)Cheryl Sabella2019-06-179-50/+193
| | | The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
* bpo-37321: Edit IDLE subprocess connection error messages. (#14170)Terry Jan Reedy2019-06-173-9/+14
| | | | Mainly, add a doc reference to message in pyshell.
* bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)Tal Einat2019-06-173-28/+117
| | | | Measure required height by quickly maximizing once per screen. A search for a better method failed.
* bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)Terry Jan Reedy2019-06-161-2/+2
| | | The patch needed for 2.7 should make the test more stable on 3.x also.
* IDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)Cheryl Sabella2019-06-071-2/+2
| | | * Change from Dummy_Editwin to DummyEditwin to match other tests.
* bpo-37177: make IDLE's search dialogs transient (GH-13869)Tal Einat2019-06-072-5/+8
| | | This avoids the search dialogs being hidden behind the editor window.
* bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791)Terry Jan Reedy2019-06-042-61/+67
| | | Add it to the end of the first line if there is room. Tests were reworked.
* IDLE: Fix typos in docs and comments (GH-13749)Xtreak2019-06-0311-11/+11
|
* bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)Cheryl Sabella2019-06-027-13/+11
| | | | Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
* bpo-32411: IDLE: Remove line number sort in browser.py (#5011)Cheryl Sabella2019-06-013-17/+20
| | | Insertion in line order makes sorting keys by line order unneeded.