summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/codecontext.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39781: Do not jump when select in IDLE codecontext (GH-18683)Miss Islington (bot)2020-02-281-19/+25
| | | | | | | Previously, the button-up part of selecting with a mouse was treated as a click that meant 'jump' to this line, which modified the context and undid the selection (cherry picked from commit c705fd1e89ccb8f6d414ec817b4616546147d877) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.7] bpo-17535: IDLE editor line numbers (GH-14030)Tal Einat2019-07-231-8/+27
| | | (cherry picked from commit 7123ea009b0b004062d91f69859bddf422c34ab4)
* bpo-33610: IDLE's code-context always shows current context immediately ↵Miss Islington (bot)2019-07-181-4/+7
| | | | | | | | | (GH-14821) Eliminate delay of up to 100ms and accompanying visual artifact. Fix bug of never showing context when hide and show. (cherry picked from commit e0a1f8fb5c60886dbddf1a3ccb5d47576bdd43e2) Co-authored-by: Tal Einat <taleinat@gmail.com>
* bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)Miss Islington (bot)2019-07-171-38/+33
| | | | | | | | | | | | | | * 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 (cherry picked from commit 7036e1de3a87d36c7ef41b8a2b44ed6fc4d34be2) Co-authored-by: Tal Einat <taleinat@gmail.com>
* bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)Miss Islington (bot)2018-12-221-0/+4
| | | | | | | | | | The Code Context menu label now toggles between Show/Hide Code Context. The Zoom Height menu now toggles between Zoom/Restore Height. Zoom Height has moved from the Window menu to the Options menu. https://bugs.python.org/issue22703 (cherry picked from commit c1b4b0f6160e1919394586f44b12538505fed300) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-35202: Remove unused imports in idlelib (GH-10438)Miss Islington (bot)2018-11-101-1/+1
| | | | | (cherry picked from commit 43a74abb3a87092a7fd6c71042eafb977d70d8e0) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>
* bpo-33855: Still more edits and minimal tests for IDLE (GH-7784)Miss Islington (bot)2018-06-201-3/+5
| | | | | | | Part 3 of 3, continuing PR GH-7689. This covers 14 idlelib modules and their tests, rpc to zoomheight except for run (already done) and tooltip (being done separately). (cherry picked from commit 4d92158f4c3917fc4fbfebff15224e74782abf79) 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-081-0/+15
| | | | | | | (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-041-21/+25
| | | | | (cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc) 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-021-14/+14
| | | | | | | | | | | | | | | | 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-011-8/+7
| | | | | | | | | | | | | 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-241-40/+38
| | | | | (cherry picked from commit 8506016f904ba6bc27bf5261f27a0bdd5945cd26) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)Miss Islington (bot)2018-05-191-13/+50
| | | | | (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) (#6961)Miss Islington (bot)2018-05-181-1/+1
| | | | | (cherry picked from commit d89ca94847d943b883ebcc68e4f0a18cb042ed0d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-31493: Fix code context update and font update timers. (#3622)Terry Jan Reedy2017-09-171-26/+26
| | | | Canceling timers prevents a warning message when test_idle completes. (This is the minimum fix needed before upcoming releases.)
* bpo-27099: IDLE - Convert built-in extensions to regular features (#2494)wohlganger2017-09-101-10/+16
| | | | | | | | | | | | | | | | | | | | | About 10 IDLE features were implemented as supposedly optional extensions. Their different behavior could be confusing or worse for users and not good for maintenance. Hence the conversion. The main difference for users is that user configurable key bindings for builtin features are now handled uniformly. Now, editing a binding in a keyset only affects its value in the keyset. All bindings are defined together in the system-specific default keysets in config- extensions.def. All custom keysets are saved as a whole in config- extension.cfg. All take effect as soon as one clicks Apply or Ok. The affected events are '<<force-open-completions>>', '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not affect their keyset- specific customization after 3.6.3. and vice versa. Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
* bpo-29910: IDLE no longer deletes a character after commenting out a region ↵Serhiy Storchaka2017-06-271-0/+1
| | | | | | | | | | | (#825) This happened because shortcut has a class binding and 'break' was not returned. Fix other potential conflicts between IDLE and default key bindings. * Add news item * Update NEWS
* Issue #27891: Consistently group and sort imports within idlelib modules.Terry Jan Reedy2016-08-311-2/+4
|
* Issue #24225: Within idlelib files, update idlelib module names.Terry Jan Reedy2016-05-281-3/+3
| | | | | | | | | | | | | | | | This follows the previous patch that changed idlelib file names. Class names that matched old module names are not changed. Change idlelib imports in turtledemo.__main__. Exception: config-extensions.def. Previously, extension section names, file names, and class names had to match. Changing section names would create cross-version conflicts in config-extensions.cfg (user customizations). Instead map old names to new file names at point of import in editor.EditorWindow.load_extension. Patch extensively tested with test_idle, idle_test.htest.py, a custom import-all test, running IDLE in a console to catch messages, and testing each menu item. Based on a patch by Al Sweigart.
* Issue #24225: Rename many idlelib/*.py and idlelib/idle_test/test_*.py files.Terry Jan Reedy2016-05-221-0/+176