summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646)Miss Islington (bot)2018-06-111-4/+5
| | | | | (cherry picked from commit 4b704f29f5a0b6f6d7bd67468ed004bd3a96855d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33656: Add enum name for argument of Windows call. (GH-7642)Miss Islington (bot)2018-06-111-1/+4
| | | | | | Change suggested by Eryk Sun in a comment on PR 7137 after it was merged. (cherry picked from commit fd88f319a4f40682b989b63f0b6378d69465fda4) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)Miss Islington (bot)2018-06-113-3/+20
| | | | | | | | | | | | | | On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary unchanged, and a monitor resolution greater than 96 DPI, this should make text and lines sharper. It should otherwise have no effect. Using a magnifier, I determined that the improvement comes from horizontal and lines being better lined up with the monitor pixels. I checked that this call causes no problem on any Windows buildbot, including the Win7 buildbots. Unlike most IDLE patches, this one can be easily reverted by users by removing a few lines, at the top of idlelib/pyshell.py. (cherry picked from commit 800415e3df69f494afe9f95a8563ce17609fe1da) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33610: Update IDLE Code Context doc entry (GH-7597)Miss Islington (bot)2018-06-101-202/+206
| | | | | | Users can now click on context lines. (cherry picked from commit af4b0130d44bf8a1ff4f7b46195d1dc79add444a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)Miss Islington (bot)2018-06-081-0/+27
| | | | | (cherry picked from commit b1f690294d9bf948d148df3ca0d20ca462d902b3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33768: IDLE: Clicking on code context line moves it to top of editor ↵Miss Islington (bot)2018-06-082-0/+49
| | | | | | | (GH-7411) (cherry picked from commit 041272b657867f5bec925b19aabf23944125d49b) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)Miss Islington (bot)2018-06-042-52/+56
| | | | | (cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33664: Scroll IDLE editor text by lines (GH-7351)Miss Islington (bot)2018-06-041-2/+27
| | | | | | | | | Previously, the mouse wheel and scrollbar slider moved text by a fixed number of pixels, resulting in partial lines at the top of the editor box. The change also applies to the shell and grep output windows, but not to read-only text views. (cherry picked from commit d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)Miss Islington (bot)2018-06-025-35/+67
| | | | | | | | | | | | | | | | The difference from before is that the settings are now on the Highlights tab instead of the Extensions tab and only change one theme at a time instead of all themes. The default for light themes is black on light gray, as before. The default for the IDLE Dark theme is white on dark gray, which better fits the dark theme. When one starts IDLE from a console and loads a custom theme without definitions for 'context', one will see a warning message on the console. To stop the warning, go to Options => Configure IDLE => Highlights, select the custom theme if not selected already, select 'Code Context', and select foreground and background colors. (cherry picked from commit de6516264e793be991f692fdd892707afb9104a7) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)Miss Islington (bot)2018-06-025-29/+31
| | | | | | | | | | | | | Instead of displaying a fixed number of lines, some blank, Code Context now displays the variable number of actual context lines. When there are no context lines, it shows a single blank line to indicate that the feature is turned on. The Code Context configuration option is changed from 'numlines' (default 3) to 'maxlines' (default 15) to avoid possible interference between user settings for the old and new versions of Code Context. (cherry picked from commit 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)Miss Islington (bot)2018-05-243-59/+60
| | | | | (cherry picked from commit 8506016f904ba6bc27bf5261f27a0bdd5945cd26) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-30928: Update idlelib/NEWS.txt. (GH-6995) (GH-6997)Terry Jan Reedy2018-05-201-0/+5
| | | (cherry picked from commit 6b0d09b)
* bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)Miss Islington (bot)2018-05-192-13/+397
| | | | | (cherry picked from commit 654038d896d78a8373b60184f335acd516215acd) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33564: Add async to IDLE's code context block openers. (GH-6960)Miss Islington (bot)2018-05-181-1/+1
| | | | | (cherry picked from commit d89ca94847d943b883ebcc68e4f0a18cb042ed0d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-30928: update idlelib/NEWS.txt for 3.6. (#6888)Terry Jan Reedy2018-05-161-2/+10
|
* bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (GH-6873)Miss Islington (bot)2018-05-161-0/+21
| | | | | (cherry picked from commit 038b21f2caaed0f02fee524277cc61e2c6ae0e9a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] bpo-29706: IDLE now colors async and await as keywords in 3.6. (#6879)Terry Jan Reedy2018-05-161-1/+1
| | | They become full keywords in 3.7.
* bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)Miss Islington (bot)2018-05-151-3/+2
| | | | | | | Added to the eye-verified htest, not to the unittests. Also remove some stray leftover comments. (cherry picked from commit 389a48ede92bf7965889d554d2cd17b50d6e3d86) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-21474: Update IDLE word/identifier definition from ascii to unicode. ↵Miss Islington (bot)2018-04-301-4/+4
| | | | | | | | | | (GH-6643) In text and entry boxes, this affects selection by double-click, movement left/right by control-left/right, and deletion left/right by control-BACKSPACE/DEL. (cherry picked from commit 5ff3a161c8a6b525c5e5b3e36e9c43f5a95bda60) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)Terry Jan Reedy2018-04-211-1/+1
| | | (cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)
* bpo-33204: IDLE - revise and extend colorizer test. (GH-6347)Miss Islington (bot)2018-04-021-3/+6
| | | | | | Followup to primary PR for the issue, GH-6344. (cherry picked from commit 55966f3a0d5f1bf823bd22ce1abbde267b06552f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33204: IDLE: consistently color invalid string prefixes (GH-6344)Miss Islington (bot)2018-04-021-4/+7
| | | | | | | A 'u' string prefix cannot be paired with either 'r' or 'f'. Consistently color as much of the prefix, starting at the right, as is valid. (cherry picked from commit da58533ac67b01ce8f6466e6f03ff6b8b3bb04d5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] Fix duplicating words words. (GH-6296) (GH-6298)Terry Jan Reedy2018-03-282-2/+2
| | | | Backport idlelib duplications. (cherry picked from commit bac2d5b)
* bpo-32984: IDLE - set __file__ for startup files (GH-5981)Miss Islington (bot)2018-03-051-0/+3
| | | | | | | | | | | | Like Python, IDLE optionally runs one startup file in the Shell window before presenting the first interactive input prompt. For IDLE, option -s runs a file named in environmental variable IDLESTARTUP or PYTHONSTARTUP; -r file runs file. Python sets __file__ to the startup file name before running the file and unsets it before the first prompt. IDLE now does the same when run normally, without the -n option. (cherry picked from commit 22c82be5df70c3d51e3f89b54fe1d4fb84728c1e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)Miss Islington (bot)2018-02-282-89/+31
| | | | | | The new code also runs faster. (cherry picked from commit f0daa880a405c8de6743e44fa46006754aa145c9) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-30928: Update idlelib/NEWS.txt, possibly for 3.7.0b2 (GH-5932)Miss Islington (bot)2018-02-281-0/+16
| | | | | (cherry picked from commit 0954c9e9c8fbea452f56120df592f2061d3209c7) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)Miss Islington (bot)2018-02-244-102/+102
| | | | | | Adjust tests and user modules to match. (cherry picked from commit c29c03a34a9f3c82704b66f323ce5ea9dc89c8af) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)Miss Islington (bot)2018-02-222-50/+7
| | | | | | dump is similar to print but less flexible. lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed. get_last_open_bracket_pos is never called. (cherry picked from commit 451d1edaf4d27c4e632d81246d308e8dd6ea945f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32874: IDLE: add tests for pyparse (GH-5755)Miss Islington (bot)2018-02-222-66/+618
| | | | | | There are no code changes other than comments and docstrings. (cherry picked from commit c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)Miss Islington (bot)2018-02-122-4/+5
| | | | | | | Using the system and place-dependent default encoding for open() is a bad idea for IDLE's system and location-independent files. (cherry picked from commit 688722cedd6437910ff185ecf94fb3b749ad37f2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. ↵Miss Islington (bot)2018-02-121-25/+27
| | | | | | | | | | | (GH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03ec0ea6a4cef8d966087c77e616c4a5893b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-30928: IDLE - update NEWS.txt [GH-5539] (GH-5545)Terry Jan Reedy2018-02-051-3/+6
| | | | | Add entry for uniform lower context; add 'since' to be explicit. (cherry picked from commit 05e806767b857b1eab838e712828e3a7d57cabf1)
* bpo-32765: Update configdialog General tab create page docstring (GH-5529) ↵Miss Islington (bot)2018-02-051-0/+16
| | | | | | | | (GH-5538) Add new entries to the widget list. (cherry picked from commit 845d86485e35a26478aedb3dc127d632fdc65759) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522)Terry Jan Reedy2018-02-041-2/+2
| | | | | | | | | Fix typos found by codespell in docs, docstrings, and comments. Fixes for the following files were in post-3.6 code and not backported: Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py, Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c. (cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
* [3.6] bpo-30928: prepare idlelib/NEWS.txt for 3.6.5 entries. (#5508)Terry Jan Reedy2018-02-031-3/+13
| | | | Add 3.6.4 and 3.6.5 headers; move 3.6.3 header below 3.6.4 entries; fix dates.
* Fix idlelib comment typos reported by Mike on pull request 4803. (GH-4807) ↵Miss Islington (bot)2017-12-123-3/+3
| | | | | (#4809) (cherry picked from commit e570211406f9bfbe16eff8d10e614d90497e08df)
* Removed doubled 'bpo-'. (GH-4777) (#4780)Miss Islington (bot)2017-12-101-1/+1
| | | (cherry picked from commit f658641a05651e0eb717bb40e2c85dca3470369d)
* bpo-30928: update idlelib/NEWS.txt. (GH-4706) (#4707)Miss Islington (bot)2017-12-051-0/+7
| | | (cherry picked from commit 2c0c68d927bfa557f98bac26644f5b64c4b135a7)
* bpo-32207: Improve tk event exception tracebacks in IDLE. (GH-4703) (#4705)Miss Islington (bot)2017-12-041-5/+9
| | | | | | | | When tk event handling is driven by IDLE's run loop, a confusing and distracting queue.EMPTY traceback context is no longer added to tk event exception tracebacks. The traceback is now the same as when event handling is driven by user code. Patch based on a suggestion by Serhiy Storchaka. (cherry picked from commit 1e2fcac4972530aa2c963d7e4011021df5ba866e)
* bpo-30928: Update idlelib/NEWS.txt to 2017 Dec 3. (GH-4701) (#4702)Miss Islington (bot)2017-12-041-0/+16
| | | | Patches are in 3.7.0a3 even if this update is not. (cherry picked from commit 21255fc3932a60c064f85c0fe68f2840f390ebe4)
* bpo-32164: Delete unused file idlelib/tabbedpages.py (GH-4628) (#4631)Miss Islington (bot)2017-11-291-498/+0
| | | (cherry picked from commit 041efd292ebff46060fc1680b0608b1d4c876a48)
* bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630)Miss Islington (bot)2017-11-291-4/+3
| | | (cherry picked from commit e8f7c78a868834bb53fa0ac903fc87785112f49e)
* bpo-32100: Delete unneeded import in idlelib.pathbrowser. (GH-4626) (#4629)Miss Islington (bot)2017-11-291-1/+0
| | | (cherry picked from commit fd6f8c56b9a757210e8ceaea9edc50e502dc2085)
* [3.6] bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (GH-4484) (#4512)Terry Jan Reedy2017-11-235-27/+88
| | | | Patch mostly by Cheryl Sabella. (cherry picked from commit 20d48a44a54ed5e4a6df00e89ae27e3983128265)
* [3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)Terry Jan Reedy2017-11-064-5/+5
| | | Manual partial backport of patch that fixed nearly 50 other files.
* IDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)Miss Islington (bot)2017-10-282-24/+15
| | | | | | Editor and output windows only see an empty last prompt line. This simplifies the code and fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is not set or changed. (cherry picked from commit e86172d63af5827a3c2b55b80351cb38a26190eb)
* bpo-31860: Make the font sample in the IDLE font configuration dialog ↵Miss Islington (bot)2017-10-282-34/+43
| | | | | | editable. (GH-4106) (#4154) Changes persist while IDLE remains open (cherry picked from commit ed6554c487fb2403bc88be6deee611c7a4171d33)
* [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (GH-4025) (#4028)Miss Islington (bot)2017-10-171-0/+39
| | | (cherry picked from commit 27288de0856c6fbe56354adb312ae706ce8bc7de)
* [3.6] bpo-13802: Use non-Latin characters in IDLE's Font settings sample. ↵Miss Islington (bot)2017-10-171-19/+61
| | | | | | | | | | | | (GH-3960) (#4027) Even if one selects a font that defines a limited subset of the unicode Basic Multilingual Plane, tcl/tk will use other fonts that define a character. The expanded example give users of non-Latin characters a better idea of what they might see in the IDLE shell and editors. To make room for the expanded sample, frames on the Font tab are re-arranged. The Font/Tabs help explains a bit about the additions. (cherry picked from commit e2e42274ee5db1acedf57b63943e1f536d7a25bc)
* [3.6] bpo-28603: Fix formatting tracebacks for unhashable exceptions ↵Miss Islington (bot)2017-10-172-3/+38
| | | | | (GH-4014) (#4024) (cherry picked from commit de86073a761cd3539aaca6f886a1f55effc0d9da)