summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_ttk
Commit message (Collapse)AuthorAgeFilesLines
* Rename Tkinter tests for widget options (GH-23944)Serhiy Storchaka2020-12-251-46/+46
| | | | 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-192-19/+21
| | | | | | | | | | | * 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-42328: Skip some tests with themes vista and xpnative on Windows 7 ↵Serhiy Storchaka2020-12-031-0/+9
| | | | (GH-23612)
* bpo-42142: Try to fix timeouts in ttk tests (GH-23474)Serhiy Storchaka2020-11-302-19/+7
| | | | | Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop use update() which should proceed all queued events.
* bpo-42370: Check element before making mouse click in ttk tests (GH-23491)Serhiy Storchaka2020-11-241-3/+11
|
* bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)Serhiy Storchaka2020-11-222-9/+88
| | | | | | | The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects.
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Serhiy Storchaka2019-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).
* 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-32297: Few misspellings found in Python source code comments. (#4803)Mike2017-12-141-2/+2
| | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py
* 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.
* bpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)csabella2017-07-311-0/+25
| | | between instances of OptionMenu.
* Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale causedSerhiy Storchaka2016-10-301-4/+13
|\ | | | | | | | | by representing the scale as float value internally in Tk. tkinter.IntVar now works if float value is set to underlying Tk variable.
| * Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale causedSerhiy Storchaka2016-10-301-4/+13
| | | | | | | | | | by representing the scale as float value internally in Tk. tkinter.IntVar now works if float value is set to underlying Tk variable.
* | 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 #26386: Fixed ttk.TreeView selection operations with item id'sSerhiy Storchaka2016-06-141-0/+51
| | | | | | | | containing spaces.
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
|/
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.Serhiy Storchaka2016-03-091-134/+134
| | | | Added few missed tests for configure options.
* Issue #23880: Tkinter's getint() and getdouble() now support Tcl_Obj.Serhiy Storchaka2015-05-061-4/+2
| | | | Tkinter's getdouble() now supports any numbers (in particular int).
* 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 #22226: Added private function _splitdict() in the Tkinter module.Serhiy Storchaka2014-09-061-20/+7
| | | | | First letter no longer is stripped from the "status" key in the result of Treeview.heading().
* Issue #22236: Tkinter tests now don't reuse default root window. New rootSerhiy Storchaka2014-08-243-143/+110
| | | | | | | | | 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().
* Added missed calls of splitlist().Serhiy Storchaka2014-06-011-2/+0
|
* Issue #21402: tkinter.ttk now works when default root window is not set.Serhiy Storchaka2014-05-281-17/+39
|
* 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-074-45/+99
| | | | | | | | | | | | | | | | | | | * 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-163-26/+26
|
* 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-152-5/+43
| | | | strings with whitespaces, backslashes or unbalanced braces.
* Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-1/+1
|\ | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-1/+1
| | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
* | 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)
* | #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\ \ | |/
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| |
| * Merged revisions 85018 via svnmerge fromAntoine Pitrou2010-10-091-4/+8
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85018 | antoine.pitrou | 2010-09-26 18:36:33 +0200 (dim., 26 sept. 2010) | 4 lines Issue #8445: try to fix some buildbot failures on test_ttk_guionly. Patch by Guilherme. ........
| * Merged revisions 74473,79974 via svnmerge fromAntoine Pitrou2010-10-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r74473 | guilherme.polo | 2009-08-16 16:44:14 +0200 (dim., 16 août 2009) | 13 lines Merged revisions 74471-74472 via svnmerge from svn+ssh://pythondev/python/trunk ........ r74471 | guilherme.polo | 2009-08-16 11:34:26 -0300 (Sun, 16 Aug 2009) | 1 line Issue #6244: Allow detect_tkinter to look for Tcl/Tk 8.6. ........ r74472 | guilherme.polo | 2009-08-16 11:38:57 -0300 (Sun, 16 Aug 2009) | 1 line Wrong place for issue #6244. ........ ................ r79974 | benjamin.peterson | 2010-04-12 00:04:51 +0200 (lun., 12 avril 2010) | 13 lines Merged revisions 79903,79907 via svnmerge from 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. ........ ................
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-134-414/+414
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | Temporarily skip test failing with newer ttk.Georg Brandl2010-12-191-1/+3
| |