summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36429: Fix starting IDLE with pyshell (#12548)Terry Jan Reedy2019-03-261-5/+3
| | | | | Add idlelib.pyshell alias at top; remove pyshell alias at bottom. Remove obsolete __name__=='__main__' command.
* bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)Ned Deily2019-03-011-1/+1
| | | Patch by Kevin Walzer.
* bpo-35196: Optimize Squeezer's write() interception (GH-10454)Tal Einat2019-01-131-0/+3
| | | | The new functionality of Squeezer.reload() is also tested, along with some general re-working of the tests in test_squeezer.py.
* bpo-34055: Revert deletion of line in IDLE's PyShell (#11346)Terry Jan Reedy2018-12-291-1/+1
| | | | The attribute is still used in other modules.
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (#10464)Tal Einat2018-12-071-4/+21
| | | | | | | | | | | | * bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" * add NEWS entry * address code review comments * address second code review comments * Add entry for idlelib/NEWS.txt.
* bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)Terry Jan Reedy2018-10-141-3/+3
| | | | A Windows build with _tkinter, tkinter, and idlelib but without ctypes is unlikely but apparently possible.
* bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)Tal Einat2018-09-251-0/+4
|
* bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)Terry Jan Reedy2018-06-211-1/+1
| | | | | Every other menudef key is the lowercase version of the corresponding main menu entry (in this case, 'Window').
* bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)Stéphane Wirtel2018-06-161-1/+1
| | | Make it the same as when one runs 'python'.
* bpo-33656: Add enum name for argument of Windows call. (GH-7642)Terry Jan Reedy2018-06-111-1/+4
| | | Change suggested by Eryk Sun in a comment on PR 7137 after it was merged.
* bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)Terry Jan Reedy2018-06-111-0/+8
| | | | | | | | | | | | 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.
* bpo-32984: IDLE - set __file__ for startup files (GH-5981)Terry Jan Reedy2018-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.
* IDLE -- Restrict shell prompt manipulaton to the shell. (#4143)Terry Jan Reedy2017-10-281-13/+11
| | | | | | 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.
* bpo-31500: IDLE: Scale default fonts on HiDPI displays. (#3639)Serhiy Storchaka2017-09-211-0/+4
|
* bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (#2629)terryjreedy2017-07-081-2/+2
|
* bpo-30495: IDLE: improve textview with docstrings, PEP8 names, more tests. ↵csabella2017-06-291-1/+1
| | | | | | | (#2283) Split TextViewer class into ViewWindow, ViewFrame, and TextFrame classes so that instances of the latter two can be placed with other widgets within a multiframe window. Patch by Cheryl Sabella.
* bpo-30166: Import command-line parsing modules only when needed. (#1293)Serhiy Storchaka2017-05-041-4/+6
|
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* import sys before we use it on line 9 (#828)Jelle Zijlstra2017-03-271-1/+2
|
* Issue #29162: Don't depend on 'from tkinter import *' importing sys.Terry Jan Reedy2017-01-051-3/+3
| | | | Fix error in format string.
* Issue #27891: Consistently group and sort imports within idlelib modules.Terry Jan Reedy2016-08-311-12/+12
|
* Issue #27611, #24137: Only change tkinter when easily restored.Terry Jan Reedy2016-08-161-2/+4
|
* Issue #25507: Move 4 objects from pyshell to run and switch inports.Terry Jan Reedy2016-07-151-100/+1
| | | | This removes one problem inport and reduces len(sys.modules) by 37.
* Issue #24137: Fixed IDLE on Linux with tkinter default root disabled.Serhiy Storchaka2016-06-251-1/+2
|
* Issue #24137: Run IDLE, test_idle, and htest with tkinter default root disabled.Terry Jan Reedy2016-06-211-1/+4
| | | | | Fix code and tests that fail with this restriction. Fix htests to not create a second and redundant root and mainloop.
* Issue #5124: rename PyShell back to pyshell and patch test for 3.6Terry Jan Reedy2016-06-111-0/+1631
|
* Issue #5124: Temporary pyshell rename to avoid case-folding collision in merge.Terry Jan Reedy2016-06-111-1618/+0
|
* Issue #24759: IDLE requires tk 8.5 and availability ttk widgets.Terry Jan Reedy2016-06-101-9/+16
| | | | Delete now unneeded tk version tests and code for older versions.
* Issue #27262: move Aqua unbinding code, which enable context menus, to maxosx.Terry Jan Reedy2016-06-081-8/+0
|
* Issue #24225: Within idlelib files, update idlelib module names.Terry Jan Reedy2016-05-281-34/+34
| | | | | | | | | | | | | | | | 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/+1619