summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_ttk/test_widgets.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.8] Rename Tkinter tests for widget options (GH-23944) (GH-23946)Serhiy Storchaka2020-12-261-46/+46
| | | | | | Every test for widget option starts now with "test_configure_" to distinguish it from tests for widget commands. (cherry picked from commit c1ae21c965cb4d0566df2095e4bcb274d0bd9353)
* [3.8] bpo-42630: Improve error reporting in Tkinter for absent default root ↵Serhiy Storchaka2020-12-191-2/+12
| | | | | | | | | | | | | | | (GH-23781) (GH-23854) * 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. (cherry picked from commit 3d569fd6dccf9f582bafaca04d3535094cae393e)
* bpo-42142: Try to fix timeouts in ttk tests (GH-23474)Miss Islington (bot)2020-11-301-13/+7
| | | | | | | Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop use update() which should proceed all queued events. (cherry picked from commit 6cc2c419f6cf5ed336609ba01055e77d7c553e6d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42370: Check element before making mouse click in ttk tests (GH-23491)Miss Islington (bot)2020-11-241-3/+11
| | | | | (cherry picked from commit b0b428510cfd604a8eef1f245f039331e671ea4a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Miss Islington (bot)2019-10-041-10/+3
| | | | | | | | | | | | | | | (GH-16545) On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError). (cherry picked from commit 06cb94bc8419b9a24df6b0d724fcd8e40c6971d6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk ↵Ned Deily2019-02-241-1/+6
| | | | (GH-12011)
* bpo-33096: Fix ttk.Treeview.insert. (GH-6228)Garvit Khatri2018-03-261-0/+9
| | | | | Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0 and iid=False would be same.
* bpo-32585: Add tkinter.ttk.Spinbox. (#5221)Alan D Moore2018-02-091-1/+178
|
* [3.8] bpo-31508: Remove support of arguments in ↵Serhiy Storchaka2018-02-011-21/+0
| | | | | | tkinter.ttk.Treeview.selection. (GH-3651) It was deprecated in 3.6.
* bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (#3667)Serhiy Storchaka2017-09-241-1/+1
| | | | | Defer removing old behavior to 3.8. Document new feature of selection_set() and friends.
* Issue #27319: Methods selection_set(), selection_add(), selection_remove()Serhiy Storchaka2016-06-191-4/+45
| | | | | | and selection_toggle() of ttk.TreeView now allow to pass multiple items as multiple arguments instead of passing them as a tuple. Deprecated undocumented ability of calling the selection() method with arguments.
* Issue #26386: Fixed ttk.TreeView selection operations with item id'sSerhiy Storchaka2016-06-141-0/+51
| | | | containing spaces.
* Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.Serhiy Storchaka2016-03-091-134/+134
| | | | Added few missed tests for configure options.
* Use more precise Tcl version checks in tests.Serhiy Storchaka2015-04-231-2/+4
|
* Fixed full Tcl version parsing in tests for pre-final versions.Serhiy Storchaka2015-04-221-2/+2
|
* Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.Serhiy Storchaka2014-11-071-1/+16
|
* Issue #22236: Tkinter tests now don't reuse default root window. New rootSerhiy Storchaka2014-08-241-89/+49
| | | | | | | | | 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 #6181: Fixed minor bugs in tkinter.Listbox methods:Serhiy Storchaka2014-06-021-10/+2
| | | | bbox(), curselection() and get().
* Fixed typo.Serhiy Storchaka2014-01-131-1/+1
|
* Try to fix some ttk tests. Error messages were changed in 8.6b3.Serhiy Storchaka2014-01-101-3/+3
|
* Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.Serhiy Storchaka2014-01-071-36/+77
| | | | | | | | | | | | | | | | | | | * Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and LabelFrame.panes() now always return a tuple. * Fixed error of comparing str and int in tt.LabeledScale._adjust(). * ttk.Notebook.index() now always returns int. * ttk.Notebook.tabs() now always returns a tuple. * ttk.Entry.bbox() now always returns a tuple of ints. * ttk.Entry.validate() now always correctly works. * ttk.Combobox.current() now always returns int. * ttk.Panedwindow.sashpos() now always returns int. * ttk.Treeview.bbox() now always returns a tuple of ints. * ttk.Treeview.get_children() now always returns a tuple. * ttk.Treeview.exists() now always correctly works. * ttk.Treeview.index() now always returns int. * ttk.Treeview.tag_has() now always returns 0 or 1. * And numerous other errors in methods which returns a tuple, list or dict. * Fixed ttk tests for wantobjects is False.
* Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).Serhiy Storchaka2013-11-211-1/+2
|
* Issue #19602: Use specific asserts in tkinter tests.Serhiy Storchaka2013-11-161-18/+18
|
* Issue #10734: Fix and re-enable test_ttk test_heading_callback.Serhiy Storchaka2013-11-021-3/+1
|
* Issue #19085: Added basic tests for all tkinter widget options.Serhiy Storchaka2013-11-021-25/+472
|
* Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.Serhiy Storchaka2013-08-221-2/+2
|
* Fix usage of the unittest.skip decorator.Serhiy Storchaka2013-03-191-1/+1
|
* Issue #15861: tkinter now correctly works with lists and tuples containingSerhiy Storchaka2013-01-151-0/+8
| | | | strings with whitespaces, backslashes or unbalanced braces.
* Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9Ned Deily2011-06-281-4/+16
| | | | on Mac OS X. (Patch by Ronald Oussoren)
* Temporarily skip test failing with newer ttk.Georg Brandl2010-12-191-1/+3
|
* Issue #8445: try to fix some buildbot failures on test_ttk_guionly.Antoine Pitrou2010-09-261-4/+8
| | | | Patch by Guilherme.
* Merged revisions 79903,79907 via svnmerge fromBenjamin Peterson2010-04-111-2/+6
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79903 | martin.v.loewis | 2010-04-08 04:47:40 -0500 (Thu, 08 Apr 2010) | 2 lines Issue #8344: Fix test_ttk bug on FreeBSD. ........ r79907 | martin.v.loewis | 2010-04-08 12:38:32 -0500 (Thu, 08 Apr 2010) | 2 lines Issue #8204: Fix test_ttk notebook test by forcing focus. ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-280/+280
|
* Merged revisions 69846 via svnmerge fromMark Dickinson2009-02-211-5/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69846 | mark.dickinson | 2009-02-21 20:27:01 +0000 (Sat, 21 Feb 2009) | 2 lines Issue #5341: Fix a variety of spelling errors. ........
* Recorded merge of revisions 69195 via svnmerge fromGuilherme Polo2009-02-021-4/+15
| | | | | | | | | | | svn+ssh://pythondev/python/trunk ........ r69195 | guilherme.polo | 2009-02-01 22:38:54 -0200 (Sun, 01 Feb 2009) | 3 lines Use a single Tcl interpreter through all these tests, this may help some failing buildbots. ........
* Merged revisions 69060-69063 via svnmerge fromGuilherme Polo2009-01-281-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev/python/trunk ........ r69060 | guilherme.polo | 2009-01-28 17:23:28 -0200 (Wed, 28 Jan 2009) | 2 lines Added support for collecting tests only from specific packages. ........ r69061 | guilherme.polo | 2009-01-28 17:28:04 -0200 (Wed, 28 Jan 2009) | 4 lines * Renaming test_tk_* to test_ttk_* since that is what they are testing. * Added ttk tests to the expected skips mapping just like where test_tcl was expected to be skipped too. ........ r69062 | guilherme.polo | 2009-01-28 18:02:01 -0200 (Wed, 28 Jan 2009) | 1 line Make sure the root windows gets destroyed ........ r69063 | guilherme.polo | 2009-01-28 18:03:26 -0200 (Wed, 28 Jan 2009) | 2 lines Issue #5083: New 'gui' resource for regrtest. ........
* Merged revisions 69050 via svnmerge fromGuilherme Polo2009-01-281-0/+1115
svn+ssh://pythondev/python/trunk ........ r69050 | guilherme.polo | 2009-01-28 11:09:03 -0200 (Wed, 28 Jan 2009) | 2 lines Added the ttk module. See issue #2983: Ttk support for Tkinter. ........