summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_tkinter/test_widgets.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-46996: Remove support of Tcl/Tk < 8.5.12 (GH-31839)Serhiy Storchaka2022-03-171-53/+24
|
* bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)Serhiy Storchaka2022-03-161-2/+2
|
* bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077)Zachary Ware2021-10-201-2/+5
| | | | | | | Since v8.6.11, a few configuration options seem to accept an empty value where they did not previously; particularly the `type` of a `Menu` widget, and the `compound` of any ttk widget with a label. Providing an explicit expected error message to `checkEnumParam` bypasses the check of an empty value, which no longer raises `TclError`.
* Rename Tkinter tests for widget options (GH-23944)Serhiy Storchaka2020-12-251-105/+106
| | | | Every test for widget option starts now with "test_configure_" to distinguish it from tests for widget commands.
* bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781)Serhiy Storchaka2020-12-191-2/+12
| | | | | | | | | | | * Tkinter functions and constructors which need a default root window raise now RuntimeError with descriptive message instead of obscure AttributeError or NameError if it is not created yet or cannot be created automatically. * Add tests for all functions which use default root window. * Fix import in the pynche script.
* bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)Serhiy Storchaka2020-12-161-3/+0
|
* bpo-41306: Allow scale value to not be rounded (GH-21715)E-Paine2020-10-081-1/+2
| | | | | | | This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed). Going into more detail for those who want it, the Tk change was made in [commit 591f68c](https://github.com/tcltk/tk/commit/591f68cb382525b72664c6fecaab87742b6cc87a) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/591f68cb382525b72664c6fecaab87742b6cc87a/generic/tkScale.c#L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`). Automerge-Triggered-By: @pablogsal
* bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)Akuli2020-07-271-0/+4
| | | | | ... when an unknown option is passed. TypeError was being raised because a 2to3 fix was missing. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760)Juliette Monsel2018-10-181-1/+8
|
* bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)Juliette Monsel2018-10-121-0/+23
|
* bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617)Juliette Monsel2018-10-081-0/+50
| | | | | Implement the methods selection_from(), selection_range(), selection_present() and selection_to() for Tkinter Spinbox.
* bpo-34189: Fix checking for bugfix Tcl version. (GH-8397)Serhiy Storchaka2018-07-221-3/+1
|
* bpo-34189: Add simple tests for new Tk widget options. (GH-8396)Serhiy Storchaka2018-07-221-2/+25
|
* Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.Serhiy Storchaka2016-03-091-2/+11
|\
| * Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.Serhiy Storchaka2016-03-091-2/+11
| | | | | | | | Added few missed tests for configure options.
* | Issue #25263: Trying to fix test_use on Windows.Serhiy Storchaka2015-11-071-3/+4
|/
* Use more precise Tcl version checks in tests.Serhiy Storchaka2015-04-231-2/+2
|\
| * Use more precise Tcl version checks in tests.Serhiy Storchaka2015-04-231-2/+2
| |
* | Issue #22236: Tkinter tests now don't reuse default root window. New rootSerhiy Storchaka2014-08-241-24/+24
|\ \ | |/ | | | | | | | | | | | | | | window is created for every test class. Fixed Tkinter images copying operations in NoDefaultRoot mode. Tcl command names generated for "after" callbacks now contains a name of original function.
| * Issue #22236: Tkinter tests now don't reuse default root window. New rootSerhiy Storchaka2014-08-241-24/+24
| | | | | | | | | | | | | | | | | | window is created for every test class. Fixed Tkinter images copying operations in NoDefaultRoot mode. Tcl command names generated for "after" callbacks now contains a name of original function.
| * Issue #6167: Backported tests for Scrollbar.activate() and Scrollbar.set()Serhiy Storchaka2014-07-231-0/+18
| | | | | | | | from 6ae34a948cb4.
* | Issue #6167: Scrollbar.activate() now returns the name of active element ifSerhiy Storchaka2014-07-231-0/+19
|/ | | | | the argument is not specified. Scrollbar.set() now always accepts only 2 arguments. Added tests for Scrollbar.activate() and Scrollbar.set().
* Issue #6181: Fixed minor bugs in tkinter.Listbox methods:Serhiy Storchaka2014-06-021-10/+42
| | | | bbox(), curselection() and get().
* Fixed new Tkinter tests added in issue #21522 with Tk 8.4.Serhiy Storchaka2014-05-231-6/+13
|
* Issue #21522: Added Tkinter tests for Listbox.itemconfigure(),Serhiy Storchaka2014-05-231-0/+181
| | | | PanedWindow.paneconfigure(), and Menu.entryconfigure().
* Issue #19761: Fixed Tkinter tests on OS X.Serhiy Storchaka2014-02-031-4/+5
|\
| * Issue #19761: Fixed Tkinter tests on OS X.Serhiy Storchaka2014-02-031-4/+5
| |
* | Issue #19733: Temporary disable test_image on MacOSX.Serhiy Storchaka2013-11-231-0/+3
|\ \ | |/
| * Issue #19733: Temporary disable test_image on MacOSX.Serhiy Storchaka2013-11-231-0/+3
| |
* | Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).Serhiy Storchaka2013-11-211-1/+2
|\ \ | |/
| * Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).Serhiy Storchaka2013-11-211-1/+2
| |
* | Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085).Serhiy Storchaka2013-11-091-3/+8
|\ \ | |/
| * Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085).Serhiy Storchaka2013-11-091-3/+8
| |
* | Revert wrong change in previous commit (issue #19085).Serhiy Storchaka2013-11-051-1/+1
|\ \ | |/
| * Revert wrong change in previous commit (issue #19085).Serhiy Storchaka2013-11-051-1/+1
| |
* | Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 ↵Serhiy Storchaka2013-11-051-4/+4
|\ \ | |/ | | | | (issue #19085).
| * Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 ↵Serhiy Storchaka2013-11-051-4/+4
| | | | | | | | (issue #19085).
* | Issue #19085: Fix running test_ttk_textonly on displayless host.Serhiy Storchaka2013-11-041-2/+3
|\ \ | |/
| * Issue #19085: Fix running test_ttk_textonly on displayless host.Serhiy Storchaka2013-11-041-2/+3
| |
* | Issue #6157: Fixed tkinter.Text.debug(). tkinter.Text.bbox() now raisesSerhiy Storchaka2013-11-031-0/+13
|\ \ | |/ | | | | | | TypeError instead of TclError on wrong number of arguments. Original patch by Guilherme Polo.
| * Issue #6157: Fixed tkinter.Text.debug(). Original patch by Guilherme Polo.Serhiy Storchaka2013-11-031-0/+13
|/
* Issue #6160: The bbox() method of tkinter.Spinbox now returns a tuple ofSerhiy Storchaka2013-11-031-0/+12
| | | | integers instead of a string. Based on patch by Guilherme Polo.
* Issue #19085: Fixed some Tkinter tests on Windows.Serhiy Storchaka2013-11-021-7/+7
|
* Issue #19085: Added basic tests for all tkinter widget options.Serhiy Storchaka2013-11-021-0/+919