summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] IDLE: make filetypes a tuple constant. (GH-3847) (#3848)Terry Jan Reedy2017-10-011-2/+2
| | | | Save a bit of code, plus non-tuples get converted anyway to tuples by tkinter for the tk call. (cherry picked from commit 5961e7c156f90c7f9444ae95b9d3e55114ca2169)
* [3.6] bpo-31460: Simplify the API of IDLE's Module Browser. (GH-3842) (#3843)Terry Jan Reedy2017-10-013-47/+36
| | | | | | | 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-31649: Make IDLE's _htest, _utest parameters keyword-only. ↵Terry Jan Reedy2017-09-306-6/+6
| | | | | (GH-3839) (#3841) (cherry picked from commit bfebfd8)
* [3.6] bpo-31459: Rename IDLE's module browser from Class Browser to Module ↵Miss Islington (bot)2017-09-236-37/+37
| | | | | | | | | | | 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-31559: Remove test order dependence in idle_test.test_browser. ↵Miss Islington (bot)2017-09-231-17/+34
| | | | | | (GH-3708) (#3709) Order dependence caused leak-test buildbots to fail when running test_idle repeatedly. (cherry picked from commit 99167f85b7373c8082b30a74211f009627bdedfa)
* [3.6] bpo-1612262: IDLE: Class Browser shows nested functions, classes ↵Terry Jan Reedy2017-09-224-158/+729
| | | | | | | | | | (GH-2573) (#3702) Original patches for code and tests by Guilherme Polo and Cheryl Sabella, respectively. (cherry picked from commit 058de11360ea6816a6e978c7be0bcbea99a3f7da)
* [3.6] bpo-31500: IDLE: Scale default fonts on HiDPI displays. (GH-3639) (#3686)Terry Jan Reedy2017-09-213-0/+19
| | | (cherry picked from commit a96c96f)
* [3.6] bpo-31500: Removed fixed size of IDLE config dialog. (GH-3664) (#3665)Miss Islington (bot)2017-09-191-1/+1
| | | | This one line of Serhiy Storchacka's bpo-31500 patch for is needed for other issues. (cherry picked from commit d6e2f26f3f7c62a4ddbf668027d3ba27cb0e1eca)
* [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017 Sep 17. (GH-3635) (#3637)Miss Islington (bot)2017-09-181-0/+19
| | | (cherry picked from commit 55679e0ec76ee3b30ca609948f47bb02a8e0a078)
* [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. ↵Miss Islington (bot)2017-09-181-2/+2
| | | | | | (GH-3634) (#3636) This reverses a never-released regression resulting from bpo-31287. (cherry picked from commit 0efc7c67a2f8a184e93f9a491305c81ef2e24250)
* [3.6] bpo-31493: Fix code context update and font update timers. (GH-3622) ↵Miss Islington (bot)2017-09-171-26/+26
| | | | | | | (#3623) Canceling timers prevents a warning message when test_idle completes. (This is the minimum fix needed before upcoming releases.) (cherry picked from commit a6bb313c70f8619e6dc4af5cef7d73fa3bbd59ca)
* [3.6] bpo-31488: IDLE - update former extensions when options change. ↵Miss Islington (bot)2017-09-163-25/+28
| | | | | | | (GH-3612) (#3613) When apply ConfigDialog changes, call .reload on each class with non-key options. Change ParenMatch so that updates affect current instances. (cherry picked from commit 5777ecc438790f3d324d52f2ccdad56e667e0cb3)
* [3.6] bpo-314777: IDLE - improve rstrip entry in doc (GH-3602) (#3605)Terry Jan Reedy2017-09-151-2/+4
| | | | | 'Strip trailing whitespace' is not limited to spaces. Wording caters to beginners who do know know the meaning of 'whitespace'. Multiline string literals are not skipped. (cherry picked from commit ff70289)
* [3.6] bpo-31462: IDLE - remove trailing whitespaces (GH-3564) (#3594)Terry Jan Reedy2017-09-153-31/+31
| | | Reproduction of Idlelib changes in Serhiy's 3.7 patch.
* [3.6] bpo-31480: IDLE - fix tests to pass with zzdummy extension disabled. ↵Miss Islington (bot)2017-09-153-45/+40
| | | | | | (GH-3590) (#3591) Enabled by default was a temporary expedient. The fix is to add a user override to enable. (cherry picked from commit d384a81f557dab0b142bfcc9850bc68df46496ef)
* [3.6] bpo-31421: Document how IDLE runs tkinter programs. (GH-3513) (#3514)Miss Islington (bot)2017-09-121-10/+30
| | | | | IDLE calls tcl/tk update in the background in order to make live interaction and experimentatin with tkinter applications much easier. (cherry picked from commit 98758bc67fb39b74bab368bef8ff3b34554c77c8)
* [3.6] bpo-27099: Finish updating IDLE doc and help text. (GH-3510) (#3511)Miss Islington (bot)2017-09-121-16/+7
| | | | As needed for the conversion of extensions to features. (cherry picked from commit adb4cd2a2a59019ac6955e0fd531c9fec9258962)
* [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (GH-3503) (#3504)Miss Islington (bot)2017-09-111-0/+46
| | | (cherry picked from commit 8239fd704637d7cbf59273883fbe487fc0f568fc)
* [3.6] bpo-31414: IDLE -- fix tk entry box tests by deleting first. (GH-3501) ↵Miss Islington (bot)2017-09-111-11/+17
| | | | | | | (#3502) Adding to an int entry is not the same as deleting and inserting because int('') will fail. (cherry picked from commit 667522efa8fedfb57fd89d7335d7dfd270f274d5)
* [3.6] bpo-30781: IDLE: Fix help button on configdialog (GH-3238) (#3489)Miss Islington (bot)2017-09-111-3/+3
| | | | | This fixes an omission in the ttk conversion patch for this issue, hence no new news. Patch by Cheryl Sabella. (cherry picked from commit 3866d9bbcf808cea98b3d00007f9f246b83858ce)
* [3.6] bpo-27099: IDLE - Convert built-in extensions to regular features ↵Terry Jan Reedy2017-09-1119-252/+428
| | | | | | | | | | | | | | | | | | | | | | | (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-31051: Rearrange IDLE condigdialog GenPage into Window, Editor, ↵Terry Jan Reedy2017-08-301-38/+45
| | | | | and Help sections. (GH-3239) (#3240) (cherry picked from commit 390ead)
* [3.6] bpo-30617: IDLE: docstrings and unittest for outwin.py (GH-2046) (#3223)Terry Jan Reedy2017-08-272-62/+274
| | | | Move some data and functions from the class to module level. Patch by Cheryl Sabella. (cherry picked from commit 998f496)
* [3.6] bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog ↵Terry Jan Reedy2017-08-272-7/+15
| | | | | tests. (GH-3220) (#3221) (cherry picked from commit 3457f42)
* [3.6] bpo-30781: IDLE - use ttk widgets in configdialog (GH-2654) (#3214)Terry Jan Reedy2017-08-262-85/+85
| | | | Patch by Cheryl Sabella. (cherry picked from commit 7028e59)
* [3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3160) (#3162)Cheryl Sabella2017-08-201-657/+0
| | | | Part 3 of 3. Remove old highlight functions and load_config as this functionality is now contained within classes. Patch by Cheryl Sabella. (cherry picked from commit 4bfebc63012f0f4e00f6a98c3d96e1c0ebe93408)
* [3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3156) (#3159)Cheryl Sabella2017-08-202-39/+37
| | | | Patch 2 of 3, to avoid horrendous diff. Create highlights page from new HighPage class instead of old ConfigDialog methods and change tests to match. Patch by Cheryl Sabella. (cherry picked from commit 8f7a798edbdbca9a400105e3225463e59b334666)
* [3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3141) (#3154)Cheryl Sabella2017-08-191-0/+643
| | | | This is the first half of a patch similar to the one for for bpo-31205. It is being split into 2 PRs to avoid what happened with PR-3096 -- an incomprehensible diff that could not be cleanly backported to 3.6. This half copies several methods of ConfigDialog and turns them into a new class. Patch by Cheryl Sabella. (cherry picked from commit a32e40561a24de373d1c5a437a8aa329758ba8e4)
* [3.6] bpo-31001: IDLE: Add tests for configdialog highlight tab (GH-3123) ↵Terry Jan Reedy2017-08-182-157/+670
| | | | | (#3124) (cherry picked from commit 82aff62)
* [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-08-15. (GH-3098) (#3099)Terry Jan Reedy2017-08-151-1/+29
| | | (cherry picked from commit 7f06684)
* [3.6] bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (GH-3096) (#3097)Terry Jan Reedy2017-08-152-458/+469
| | | | | | | | | | | | | * bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096) The slightly modified tests continue to pass. Patch by Cheryl Sabella. (cherry picked from commit e36d9f5568093b3885da62a0bf0fdfbe3771672b) * [3.6] bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (GH-3096) The slightly modified tests continue to pass. Patch by Cheryl Sabella.. (cherry picked from commit e36d9f5568093b3885da62a0bf0fdfbe3771672b)
* [3.6] bpo-31002: IDLE: Add tests for configdialog keys tab (GH-2996) (#3092)Terry Jan Reedy2017-08-152-188/+609
| | | | Patch by Cheryl Sabella. (cherry picked from commit 2f89646)
* [3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822) ↵Terry Jan Reedy2017-08-102-23/+57
| | | | | | | | (#3053) Idlelib.calltips.get_argspec now uses inspect.signature instead of inspect.getfullargspec, like help() does. This improves the signature in the call tip in a few different cases, including builtins converted to provide a signature. A message is added if the object is not callable, has an invalid signature, or if it has positional-only parameters. Patch by Louie Lu.. (cherry picked from commit 3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162)
* [3.6] bpo-31130: IDLE -- stop leaks in test_configdialog. (GH-3016) (#3018)Terry Jan Reedy2017-08-072-38/+49
| | | | Initial patch by Victor Stinner. (cherry picked from commit 733d0f6)
* [3.6] bpo-29910: IDLE - revert `break`s that disabled calltip close. ↵Terry Jan Reedy2017-08-071-4/+4
| | | | | (GH-2997) (#3017) (cherry picked from commit 8922587)
* [3.6] bpo-31083: IDLE: Describe the Page classes in configdialog (GH-2965) ↵Terry Jan Reedy2017-08-011-15/+27
| | | | | | | (#2973) Add template as comment. Update existing classes to match outline. Initial patch by Cheryl Sabella. (cherry picked from commit 6f446be)
* [3.6] bpo-31050: IDLE: Factor GenPage class from ConfigDialog (GH-2952) (#2955)Terry Jan Reedy2017-07-302-284/+267
| | | | | The slightly modified tests for the General tab continue to pass. Patch by Cheryl Sabella. (cherry picked from commit e8eb17b)
* [3.6] bpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) ↵Terry Jan Reedy2017-07-302-239/+267
| | | | | | | | (GH-2905) (#2950) The slightly modified tests continue to pass. The General test broken by the switch to Notebook is fixed. Patch mostly by Cheryl Sabella. (cherry picked from commit 9397e2a)
* [3.6] bpo-30928: Update IDLE News.txt. (GH-2948) (#2949)Terry Jan Reedy2017-07-301-2/+40
| | | (cherry picked from commit c3aa47f655abe564a2c2fb6d091ab19bdc0113b5)
* [3.6] bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (GH-2938) (#2944)Terry Jan Reedy2017-07-292-35/+42
| | | | | | The notebook looks a bit better. It will work better with separate page classes. Traversal of widgets by Tab works better. Switching tabs with keys becomes possible. The font sample box works better at large font sizes. One of the two simulated click tests no longer works. This will be investigated while fixing a bug with the widget itself. (cherry picked from commit b331f80)
* [3.6] bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (GH-2936) ↵Terry Jan Reedy2017-07-282-16/+23
| | | | | | | (#2937) Add clear method for tests. Adjust tests to use global instance. Remove unneeded ConfigDialog method. (cherry picked from commit 5d0f30a)
* [3.6] bpo-30853: IDLE: Convert font and general vars to use VarTrace ↵Terry Jan Reedy2017-07-281-62/+42
| | | | | | | | (GH-2914) (#2935) Instance tracers manages pairs consisting of a tk variable and a callback function. When tracing is turned on, setting the variable calls the function. Test coverage for the new class is 100%. (cherry picked from commit 5b59154)
* [3.6] bpo-31060: IDLE: Finish regrouping ConfigDialog methods (GH-2908) (#2925)Terry Jan Reedy2017-07-281-768/+772
| | | | Finish resorting the 72 ConfigDialog methods into 7 groups that represent the dialog, action buttons, and font, highlight, keys, general, and extension pages. This will help with continuing to add tests and improve the pages. It will enable splitting ConfigDialog into 6 or 7 more comprehensible classes. (cherry picked from commit b166080)
* [3.6] bpo-31003: IDLE - Add more tests for General tab (GH-2859) (#2906)Terry Jan Reedy2017-07-273-198/+379
| | | | | | | * In configdialog: Document causal pathways in create_page_general. Move related functions to follow this. Simplify some attribute names. * In test_configdialog: Add tests for load and helplist functions. Coverage for the general tab is now complete, and 63% overall. (cherry picked from commit 2bc8f0e)
* [3.6] bpo-30853: IDLE: Factor a VarTrace class from ↵Terry Jan Reedy2017-07-272-2/+147
| | | | | | | configdialog.ConfigDialog. (GH-2872) (#2903) The new class manages pairs of tk Variables and trace callbacks. It is completely covered by new tests. (cherry picked from commit 45bf723)
* [3.6] bpo-30993: IDLE - Improve configdialog font page and tests. (GH-2831) ↵Terry Jan Reedy2017-07-242-197/+213
| | | | | | | | (#2834) In configdialog: Document causal pathways in create_font_tab docstring. Simplify some attribute names. Move set_samples calls to var_changed_font (idea from Cheryl Sabella). Move related functions to positions after the create widgets function. In test_configdialog: Fix test_font_set so not order dependent. Fix renamed test_indent_scale so it tests the widget. Adjust tests for movement of set_samples call. Add tests for load functions. Put all font tests in one class and tab indent tests in another. Except for two lines, these tests completely cover the related functions. (cherry picked from commit 77e97ca)
* [3.6] bpo-30993: IDLE - Improve configdialog font page and tests. (GH-2818) ↵Terry Jan Reedy2017-07-232-56/+63
| | | | | | | | | | (#2826) * Document causal event pathways in docstring. * Simplify some attribute names. * Rename test_bold_toggle_set_samples to make test_font_set fail. * Fix test_font_set so not order dependent. * Fix renamed test_indent_scale so it tests the widget. (cherry picked from commit 07ba305)
* [3.6] bpo-30981: IDLE -- Add more configdialog font page tests. (GH-… (#2796)Terry Jan Reedy2017-07-222-65/+75
| | | | | | | | Verify that clicking the bold checkbutton and calling its command, set_samples, changes the bold setting of both samples. Simplify some names in configdialog. (cherry picked from commit d0969d6) (Incorporates changes and fixes from PRs 2798, 7c5798e, and 2810, 616ecf1) * Fix broken test with PR2798 and PR2810 changes.
* [3.6] bpo-28523: IDLE: Use 'color' instead of 'colour'. (GH-2787) (#2791)Terry Jan Reedy2017-07-211-54/+54
| | | (cherry picked from commit a54a8f1)
* [3.6] bpo-30917: IDLE: Add config.IdleConf unittests (GH-2691) (#2753)terryjreedy2017-07-202-18/+457
| | | | | | | | | Patch by Louie Lu. (cherry picked from commit f776eb0) (includes diffs of ed014f7 and 9f9192a) * fix config reset from pr 2754 * Fix test_get_font (from pr 2769)