| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
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.
|
| |
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
(#2872)
The new class manages pairs of tk Variables and trace callbacks.
It is completely covered by new tests.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
| |
Remove broken test of bold_toggle and test it along with its command, set_samples.
This has been incorporated into 3.6 backport PR-2796.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Patch by LouieLu.
|
| |
|
|
| |
Patch by Louie Lu.
|
| |
|
|
|
| |
* 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.
|
| | |
|
| |
|
|
|
|
| |
(#2697)
The will help writing dialog improvements and splitting the class into multiple classes.
Original patch by Cheryl Sabella.
|
| |
|
| |
Initial patch by Louie Lu.
|
| |
|
|
|
|
| |
subclasses. (#2662)
Patch by Louie Lu.
|
| |
|
|
| |
Also improve test of config.ConfigChanges.delete_section.
Original patch by Cheryl Sabella.
|
| |
|
| |
Patch by Cheryl Sabella.
|
| | |
|
| |
|
|
|
| |
One is a duplicate, one is set but cannot be altered by users.
Patch by Cheryl Sabella.
|
| |
|
| |
Patch by Louie Lu.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
config; test. (#2612)
* 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.
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Patch by Cheryl Sabella.
|
| |
|
|
|
|
|
| |
(#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.
|
| |
|
|
|
| |
(#2451)
Patch by Mark Roseman
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
Patch by Cheryl Sabella
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
(#825)
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
|
| |
|
| |
Patch by Cheryl Sabella.
|
| |
|
|
| |
Also, change '*' in the tkinter import to an explicit list of names.
Patch by Cheryl Sabella.
|
| |
|
|
|
|
| |
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.
|
| |
|
| |
Patch by Cheryl Sabella.
|
| |
|
| |
Patch by Cheryl Sabella
|
| | |
|
| |
|
| |
Comceptually -> Conceptually
|
| | |
|
| |
|
| |
Before, <return> would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, <return> was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The root problem was non-check for hide_event. When user clicks
on autocomplete window (acw), root widget gets focusOut event, then triggers hide_window to
close the acw. It should only be hide when acw is active, and acw didn't
get focus at FocusOut event (this event bind on acw and widget), or when
widget get a ButtonPress event (this event only bind on widget).
MacOS froze after double click on acw because when
doubleclick_event try to hide window at the end, hide_window function
destory whole acw, but tkinter didn't get focus back to widget. So set focus
on widget first, then destory acw.
Windows could not respond on double click event, because of the misbehavior
of Configure event. When acw was shown, tkinter called winconfig
event multiple times. That caused tkinter to not response to double
click event. When on Windows, unbind Configure event first
time get into winconfig_event to prevent multiple call of this event.
|
| |
|
| |
When IDLE fail to start because the socket connection fails, direct people to a new subsection of the IDLE doc listing various causes and remedies.
|
| |
|
| |
For unknown reasons, this does not work when running leak tests.
|
| | |
|
| |
|
| |
Patch by Louie Lu.
|
| |
|
| |
Also fixed a few more line endings that were missed in GH-840, which were causing failure.
|
| | |
|