| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
(GH-3708) (#3709)
Order dependence caused leak-test buildbots to fail when running test_idle repeatedly.
(cherry picked from commit 99167f85b7373c8082b30a74211f009627bdedfa)
|
|
|
|
|
|
|
|
|
|
| |
(GH-2573) (#3702)
Original patches for code and tests by Guilherme Polo and
Cheryl Sabella, respectively.
(cherry picked from commit 058de11360ea6816a6e978c7be0bcbea99a3f7da)
|
|
|
|
|
|
|
| |
(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)
|
|
|
| |
Reproduction of Idlelib changes in Serhiy's 3.7 patch.
|
|
|
|
|
|
| |
(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)
|
|
|
|
|
|
|
| |
(#3502)
Adding to an int entry is not the same as deleting and inserting
because int('') will fail.
(cherry picked from commit 667522efa8fedfb57fd89d7335d7dfd270f274d5)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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)
|
|
|
|
| |
Move some data and functions from the class to module level. Patch by Cheryl Sabella.
(cherry picked from commit 998f496)
|
|
|
|
|
| |
tests. (GH-3220) (#3221)
(cherry picked from commit 3457f42)
|
|
|
|
| |
Patch by Cheryl Sabella.
(cherry picked from commit 7028e59)
|
|
|
|
| |
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)
|
|
|
|
|
| |
(#3124)
(cherry picked from commit 82aff62)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
| |
Patch by Cheryl Sabella.
(cherry picked from commit 2f89646)
|
|
|
|
|
|
|
|
| |
(#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)
|
|
|
|
| |
Initial patch by Victor Stinner.
(cherry picked from commit 733d0f6)
|
|
|
|
|
| |
The slightly modified tests for the General tab continue to pass.
Patch by Cheryl Sabella.
(cherry picked from commit e8eb17b)
|
|
|
|
|
|
|
|
| |
(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)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
(#2937)
Add clear method for tests. Adjust tests to use global instance.
Remove unneeded ConfigDialog method.
(cherry picked from commit 5d0f30a)
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
| |
(#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)
|
|
|
|
|
|
|
|
|
|
| |
(#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)
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
* Add section to idlelib/idle-test/README.txt.
* Include check that branches are taken both ways.
* Exclude IDLE-specific code that does not run during unit tests.
(cherry picked from commit 95bebb7)
|
|
|
|
|
|
| |
(GH-2666) (#2701)
Initial patch by Louie Lu.
(cherry picked from commit 9b622fb)
|
|
|
|
|
|
| |
subclasses. (GH-2662) (#2685)
Patch by Louie Lu.
(cherry picked from commit 50c9435)
|
|
|
|
|
|
|
| |
(GH-2667) (#2674)
Also improve test of config.ConfigChanges.delete_section.
Original patch by Cheryl Sabella.
(cherry picked from commit 6d13b22)
|
|
|
|
|
|
|
|
|
|
|
|
| |
in config; test. (GH-2612) (#2625)
* In config, put dump test code in a function; run it and unittest in 'if __name__ == '__main__'.
* Add class config.ConfigChanges based on changes_class_v4.py on bpo issue.
* Add class test_config.ChangesTest, partly based on configdialog_tests_v1.py on bpo issue.
* Revise configdialog to use ConfigChanges, mostly as specified in tracker msg297804.
* Revise test_configdialog to match configdialog changes. All tests pass in both files.
* Remove configdialog functions unused or moved to ConfigChanges.
Cheryl Sabella contributed parts of the patch.
(cherry picked from commit 349abd9)
|
|
|
|
|
| |
(#2613)
(cherry picked from commit 25a4206)
|
|
|
|
|
|
|
|
| |
tests. (GH-2283) (#2496)
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.
(cherry picked from commit 42bc8be)
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-2306) (#2460)
* Add 'parens' style to highlight both opener and closer.
* Make 'default' style, which is not default, a synonym for 'opener'.
* Make time-delay work the same with all styles.
* Add help for config dialog extensions tab, including parenmatch.
* Add new tests.
Original patch by Charles Wohlganger.
(cherry picked from commit fae2c35)
|
|
|
|
|
|
| |
(GH-2428) (#2433)
Original patch by Saimadhav Heblikar.
(cherry picked from commit 44913e5)
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
Patch by Cheryl Sabella.
(cherry picked from commit 9a02ae3)
|
|
|
|
|
| |
Also, change '*' in the tkinter import to an explicit list of names.
Patch by Cheryl Sabella.
(cherry picked from commit bac7d33)
|
|
|
|
|
|
|
|
| |
(#2397)
Verify user-entered key sequences by trying to bind them with tk.
Add tests for all 3 validation functions.
Original patch by G Polo. Tests added by Cheryl Sabella.
(cherry picked from commit 8c78aa7)
|
|
|
|
| |
Patch by Cheryl Sabella.
(cherry picked from commit 18ede06)
|
|
|
|
| |
Patch by Cheryl Sabella
(cherry picked from commit d352d68)
|
|
|
|
| |
For unknown reasons, this does not work when running leak tests.
(cherry picked from commit 049cf2bb44038351e1b2eed4fc7b1b522329e550)
|
|
|
| |
(cherry picked from commit 8323189ff1a19566f923c04b95e4d17fa57d1f56)
|
|
|
|
| |
Patch by Louie Lu.
(cherry picked from commit b070fd275b68df5c5ba9f6f43197b8d7066f0b18)
|
|
|
|
| |
Synchronize 3.6/3.7 test_calltips to the extent possible. Part of patch by Serhiy Storchaka.
(cherry-pick from fdd42c4)
|
| |
|
|
|
|
| |
Part of patch by Victor Stinner.
(cherry-pick from d6debb24e06152a827769b0cac24c47deccdeac1)
|
|
|
|
| |
Part of patch by Serhiy Strochaka, 2016-12-16 (no bpo issue)
(cherry-pick of 70d28a184c42d107cc8c69a95aa52a4469e7929c)
|