summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" ↵Miss Islington (bot)2018-12-074-9/+67
| | | | | | | | | | | | | | | | (GH-10464) * 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. (cherry picked from commit 9ebe8794f003dadfff578a066ea503a3e37ffe1d) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934). (GH-11001)Serhiy Storchaka2018-12-061-1/+1
| | | | (cherry picked from commit 42b1d6127bd8595522a78a75166ebb9fba74a6a2)
* [3.6] bpo-34162: Update idlelib NEWS to 2018-12-05 (GH-10964) (GH-10979)Terry Jan Reedy2018-12-061-2/+40
| | | Cherry-picked from 6ea9d54.
* bpo-35202: Remove more unused imports in idlelib (GH-10573)Miss Islington (bot)2018-11-174-4/+3
| | | | | (cherry picked from commit 5a087d5401e6956cf4c6d95f15fedabf39a4f5af) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
* bpo-35213: Where appropriate, use 'macOS' in idlelib. (GH-10478)Miss Islington (bot)2018-11-154-20/+19
| | | | | (cherry picked from commit b65413b497a07f521d835b799be7dd0afcedbd65) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-34864: Document two IDLE on MacOS issues. (GH-10456)Miss Islington (bot)2018-11-111-7/+17
| | | | | | | | The System Preferences Dock "prefer tabs always" setting disables some IDLE features. Menus are a bit different than as described for Windows and Linux. (cherry picked from commit 50ff02b43145f33f8e28ffbfcc6a9d15c4749a64) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35202: Remove unused imports in idlelib (GH-10438)Miss Islington (bot)2018-11-106-6/+1
| | | | | (cherry picked from commit 43a74abb3a87092a7fd6c71042eafb977d70d8e0) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>
* bpo-33000: Document that IDLE's shell has no line limit. (GH-10373)Miss Islington (bot)2018-11-071-5/+12
| | | | | | A program that runs indefinitely can overfill memory. (cherry picked from commit 76cd0c30d60961d1a10e2673834a455d2b51f695) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-23220: Explain how IDLE's Shell displays output (GH-10356) (#10369)Miss Islington (bot)2018-11-061-11/+42
| | | | | | Add a new subsection to the doc. (cherry picked from commit 75d9d59ab3a372d3d78e6a1f5e9f256e29d0a9a6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35099: Update idlelib/help.html (GH-10353)Miss Islington (bot)2018-11-061-16/+26
| | | | | | (This should have been done with the first PR for this issue.) (cherry picked from commit f1d3efc2fba704692d539acc3cb0376a1dd9d98f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] bpo-35133: Fix mistakes when concatenate string literals on different ↵Serhiy Storchaka2018-11-053-6/+6
| | | | | | | | | | | lines. (GH-10284) (GH-10335) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings.. (cherry picked from commit 34fd4c20198dea6ab2fe8dc6d32d744d9bde868d)
* bpo-35097: Add IDLE doc subsection explaining editor windows. (GH-10206)Miss Islington (bot)2018-10-291-0/+17
| | | | | | Topics include opening, title and status bar, .py* extension, and running. (cherry picked from commit ea9c8bd44365ae8b0accc5286c7b52862528c0ec) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Issue 35093: Document the IDLE document viewer in the IDLE doc. (GH-10195)Miss Islington (bot)2018-10-281-10/+20
| | | | | | Add a paragraph in "Help and preferences", "Help sources" subsection. (cherry picked from commit 18032632ab27eed51d705c2be7b64bac708279bf) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-1529353: Explain Shell text squeezing in the IDLE doc. (GH-10169)Miss Islington (bot)2018-10-281-2/+19
| | | | | (cherry picked from commit 68d6dc0770288075504635a8e42696070823fd69) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35088: Update idlelib.help.copy_string docstring (GH-10164)Miss Islington (bot)2018-10-281-17/+17
| | | | | | We now use git and backporting instead of hg and forward merging. (cherry picked from commit 2b555fc1f07bee8b066a6d7da727e516f37e8e34) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35087: Update idlelib help files for the current doc build. (GH-10162)Miss Islington (bot)2018-10-282-78/+98
| | | | | | There is only one trivial change to idle.rst. Nearly all the changes to help.html are the elimination of chapter and section numbers on headers due to changes in the build system. help.py no longer requires header numbering. (cherry picked from commit db40cb50eb823b8ef9040b1c9bf31a7475d94d39) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)Miss Islington (bot)2018-10-141-3/+3
| | | | | | | A Windows build with _tkinter, tkinter, and idlelib but without ctypes is unlikely but apparently possible. (cherry picked from commit d274afb5e579a5d9d990f68f9af856cf4c918779) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] bpo-34906: Doc: Fix typos (2) (GH-9735)Stéphane Wirtel2018-10-101-3/+3
| | | (cherry picked from commit 683281f536981da395575b5a07d6761118259fd2)
* bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)Miss Islington (bot)2018-09-301-2/+2
| | | | | | Patch by Serhiy Storchaka (in PR GH-9642). (cherry picked from commit 5fa247d60d4f3f2b8c8ae8cb57363aca234344c2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)Miss Islington (bot)2018-09-251-0/+7
| | | | | (cherry picked from commit 22ef31d0b4b497eda5e356528c3e1d29584d6757) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)Miss Islington (bot)2018-09-2510-29/+971
| | | | | (cherry picked from commit 604e7b9931f9e7881a2941816e538f5f15930db8) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)Miss Islington (bot)2018-09-251-2/+15
| | | | | (cherry picked from commit 16fba6231458cc1ff82db8695ee772b74131cc83) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-34548: IDLE: use configured theme colors in TextView (GH-9008)Miss Islington (bot)2018-09-232-9/+11
| | | | | | https://bugs.python.org/issue34548 (cherry picked from commit c87d9f406bb23657c1b4cd63017bb7bd7693a1fb) 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-33839: refactor IDLE's tooltips & calltips, add docstrings and tests ↵Miss Islington (bot)2018-08-056-144/+415
| | | | | | | | | | | (GH-7683) * make CallTip and ToolTip sub-classes of a common abstract base class * remove ListboxToolTip (unused and ugly) * greatly increase test coverage * tested on Windows, Linux and macOS (cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)Miss Islington (bot)2018-08-031-0/+1
| | | | | | | | Some MacOS-tk combinations need .update_idletasks(). The call is both unneeded and innocuous on Linux and Windows. Patch by Kevin Waltzer. (cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)Miss Islington (bot)2018-08-021-2/+4
| | | | | (cherry picked from commit dd74369cb7b230b07ac3a031563406c8f2aae17f) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)Miss Islington (bot)2018-08-025-0/+9
| | | | | | Added missing .grab_release() calls to all places where we call .grab_set(). (cherry picked from commit 10ea9409ceb5da83cb380b610750551e26561044) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* [3.6] bpo-34162: idlelib/NEWS.txt entries to 2018-7-20 (GH-8345) (GH-8348)Terry Jan Reedy2018-07-201-2/+39
| | | Cherry-picked from 2c5c0a3
* bpo-33975: Avoid small type when running IDLE's htests. (GH-7944)Miss Islington (bot)2018-06-271-0/+1
| | | | | | | | | | | | Import pyshell first in htest to call SetProcessDpiAwareness on Windows before tkinter.Tk() is called for the htest. Apparently, 'root.destroy()' undoes a previous 'root = Tk()'. Since IDLE unittests always destroy roots, a unittest before an htest does not require anything more to work right. Since part of the purpose of human-viewed tests is to determine that widgets look right, it is important that they look the same for testing as when running IDLE. (cherry picked from commit 3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)Miss Islington (bot)2018-06-261-2/+2
| | | | | | These should have been included in PR 7836. (cherry picked from commit 42397731d7ba8bdf63025d48008d133cb2070229) Co-authored-by: Mark Roseman <mark@markroseman.com>
* bpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)Miss Islington (bot)2018-06-241-0/+4
| | | | | | | | | | This avoids a failure in at least one case when running only a single test method rather than all tests in the module. The issue came up when testing the following on Windows 10 Pro 64-bit: HighPageTest.test_highlight_target_text_mouse (cherry picked from commit 2af9f5d334eeca588eeee87d177faf0012c63a03) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)Miss Islington (bot)2018-06-231-10/+0
| | | | | | | In configdialog, the custom tabbedpages widget was replaced by ttk.notebook several months ago. (cherry picked from commit 5ae70f66ff1949eec35ff207c97cfe572c4e74c8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)Miss Islington (bot)2018-06-222-11/+22
| | | | | | Increases coverage by 44%. (cherry picked from commit bcd3a1a18d841338f57c39f6a7de8cf14d0c3e03) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)Miss Islington (bot)2018-06-216-9/+9
| | | | | | | 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-217-22/+22
| | | | | | | 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-33917: Fix and document idlelib/idle_test/template.py (GH-7830)Miss Islington (bot)2018-06-202-26/+38
| | | | | | | The revised file compiles, runs, and tests OK. idle_test/README.txt explains how to use it to create new IDLE test files. (cherry picked from commit 87a927325e3856621790a39d8718ff24a19510aa) 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-203-5/+5
| | | | | (cherry picked from commit 9bb92235f6272b28d59fcbd04f101fdc6b1bbc50) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
* bpo-33907: Rename an IDLE module and classes. (GH-7810)Miss Islington (bot)2018-06-203-8/+8
| | | | | | | | Fix-up class name duplication in PR GH-7807. Combined effect is that module calltips and its class CallTips are now calltip and Calltip. In module calltip_w class CallTip is now CalltipWindow. (cherry picked from commit 9af1836664d241fec6e62955ffaa559b3a2eaf1b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] bpo-33907: Rename an IDLE module and class. (GH-7807) (GH-7809)Terry Jan Reedy2018-06-206-30/+30
| | | | | | | | 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>
* bpo-33855: Still more edits and minimal tests for IDLE (GH-7784)Miss Islington (bot)2018-06-2036-95/+356
| | | | | | | 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-33855: More edits and new minimal tests for IDLE (GH-7761)Miss Islington (bot)2018-06-1830-338/+483
| | | | | | | Part 2 of 3. Continues PR GH-7689, changeset ee5ef30. Edit and add tests for 18 modules, help_about to replace and run. (cherry picked from commit ea3dc8029ab6a0f1ee6a8a72f1612dea74892e08) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)Miss Islington (bot)2018-06-161-1/+1
| | | | | | Make it the same as when one runs 'python'. (cherry picked from commit 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [3.6] bpo-33855: Minimally test all IDLE modules. (GH-7689) (GH-7734)Terry Jan Reedy2018-06-1633-105/+414
| | | | | | 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-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>