summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/editor.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)Miss Islington (bot)2018-09-251-3/+4
| | | | | (cherry picked from commit 604e7b9931f9e7881a2941816e538f5f15930db8) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678)Miss Islington (bot)2018-08-101-6/+17
| | | | | (cherry picked from commit 077059e0f086cf8c8b7fb9d1f053e38ddc743f59) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)Miss Islington (bot)2018-06-211-3/+3
| | | | | | | Every other menudef key is the lowercase version of the corresponding main menu entry (in this case, 'Window'). (cherry picked from commit 33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33906: Rename idlelib.windows as window (GH-7833)Miss Islington (bot)2018-06-211-7/+7
| | | | | | | Match Window on the main menu and remove last plural module name. Change imports, test, and attribute references to match new name. (cherry picked from commit a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)Miss Islington (bot)2018-06-201-2/+2
| | | | | (cherry picked from commit 9bb92235f6272b28d59fcbd04f101fdc6b1bbc50) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
* [3.6] bpo-33907: Rename an IDLE module and class. (GH-7807) (GH-7809)Terry Jan Reedy2018-06-201-6/+6
| | | | | | | | Improve consistency and appearance. Module idlelib.calltips is now calltip. Class idlelib.calltip_w.CallTip is now Calltip. (cherry picked from commit 06e2029dfa500a42e3565ed7ba8573412f153d1c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] bpo-33855: Minimally test all IDLE modules. (GH-7689) (GH-7734)Terry Jan Reedy2018-06-161-2/+2
| | | | | | Create a template for minimally testing a tkinter-using module by importing it and instantiating its class(es). Add a test file for all non-startup IDLE modules. Edit existing files and update coverage. This is part 1 of 3, covering the 21 autocomplete to help modules and touching 33 idlelib files.. (cherry picked from commit ee5ef309c7e2daef1248730145408f700732c42e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* 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-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>
* bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)Miss Islington (bot)2018-02-241-2/+2
| | | | | | Adjust tests and user modules to match. (cherry picked from commit c29c03a34a9f3c82704b66f323ce5ea9dc89c8af) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (GH-4484) (#4512)Terry Jan Reedy2017-11-231-1/+1
| | | | Patch mostly by Cheryl Sabella. (cherry picked from commit 20d48a44a54ed5e4a6df00e89ae27e3983128265)
* IDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)Miss Islington (bot)2017-10-281-11/+4
| | | | | | 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)
* [3.6] bpo-31460: Simplify the API of IDLE's Module Browser. (GH-3842) (#3843)Terry Jan Reedy2017-10-011-3/+1
| | | | | | | Passing a widget instead of an flist with a root widget opens the option of creating a browser frame that is only part of a window. Passing a full file name instead of pieces assumed to come from a .py file opens the possibility of browsing python files that do not end in .py. (cherry picked from commit d6bb65f)
* [3.6] bpo-31459: Rename IDLE's module browser from Class Browser to Module ↵Miss Islington (bot)2017-09-231-5/+5
| | | | | | | | | | | Browser. (GH-3704) (#3710) The original module-level class and method browser became a module browser, with the addition of module-level functions, years ago. Nested classes and functions were added yesterday. For back- compatibility, the virtual event <<open-class-browser>>, which appears on the Keys tab of the Settings dialog, is not changed. Patch by Cheryl Sabella. (cherry picked from commit cd99e79dc74c9d9dea83a5551d657c334b2cc6c9)
* [3.6] bpo-27099: IDLE - Convert built-in extensions to regular features ↵Terry Jan Reedy2017-09-111-12/+52
| | | | | | | | | | | | | | | | | | | | | | | (GH-2494) (#3487) 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. (cherry picked from commit 58fc71c)
* [3.6] bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (GH-2629) (#2631)terryjreedy2017-07-081-2/+2
| | | (cherry picked from commit 223c7e7)
* [3.6] bpo-29910: IDLE no longer deletes a character after commenting out a ↵terryjreedy2017-06-271-6/+24
| | | | | | | | | | | region (GH-825) (#2429) 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 (cherry picked from commit 213ce12)
* [3.6] bpo-24813: IDLE: Add default title to help_about (GH-2366) (#2369)terryjreedy2017-06-241-1/+1
| | | | Patch by Cheryl Sabella. (cherry picked from commit 18ede06)
* [3.6] bpo-29919 Remove unused imports from idlelib [GH-137] (#2105)terryjreedy2017-06-111-1/+0
| | | | Part of patch by Victor Stinner. (cherry-pick from d6debb24e06152a827769b0cac24c47deccdeac1)
* Issue #27891: Consistently group and sort imports within idlelib modules.Terry Jan Reedy2016-08-311-20/+21
|
* Issue 27437: Add query.ModuleName and use it for file => Load Module.Terry Jan Reedy2016-07-031-38/+20
| | | | Users can now edit bad entries instead of starting over.
* Issue 27372: Stop test_idle from changing locale, so test passes.Terry Jan Reedy2016-06-261-2/+6
| | | | In 3.6, the warning is now called an error, making it harder to ignore.
* Issue *24750: Switch all scrollbars in IDLE to ttk versions.Terry Jan Reedy2016-06-101-0/+1
| | | | Where needed, add minimal tests to cover changes.
* Issue #24759: IDLE requires tk 8.5 and availability ttk widgets.Terry Jan Reedy2016-06-101-7/+4
| | | | Delete now unneeded tk version tests and code for older versions.
* Issue #27156: Remove obsolete code not used by IDLE.Terry Jan Reedy2016-05-301-48/+0
| | | | | | | help.txt, replaced by help.html, is out-of-date and should not be used. Its dedicated viewer has be replaced by the html viewer in help.py. 'import idlever; I = idlever.IDLE_VERSION' is the same as 'import sys; I = version[:version.index(' ')]'
* Issue #27117: Make colorizer htest and turtledemo work with dark theme.Terry Jan Reedy2016-05-291-15/+2
| | | | Factor out code for configuring text widget colors to a new function.
* Issue #24225: Within idlelib files, update idlelib module names.Terry Jan Reedy2016-05-281-58/+71
| | | | | | | | | | | | | | | | 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/+1703