summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_tkinter/test_misc.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.9] bpo-33289: Return RGB triplet of ints instead of floats from ↵Serhiy Storchaka2021-01-251-0/+20
| | | | | | | | tkinter.colorchooser (GH-6578). (GH-24318) (cherry picked from commit 6713e869c4989c04318158b406c30a147ea52904) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.9] bpo-42630: Improve error reporting in Tkinter for absent default root ↵Serhiy Storchaka2020-12-191-2/+80
| | | | | | | | | | | | | | | (GH-23781) (GH-23853) * 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-41831: Add tests for tkinter.Event.__repr__ (GH-22354) (GH-22617)Miss Skeleton (bot)2020-10-091-0/+48
| | | | | (cherry picked from commit f25323a307a72c40862c87c2df822f83be6645da) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Serhiy Storchaka2019-10-041-0/+22
| | | | | | | | | | | | | (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-29446: tkinter 'import *' only imports what it should (GH-14864)Flavian Hautbois2019-07-261-0/+14
| | | | Add __all__ to tkinter.__init__ and submodules. Replace 'import *' with explicit imports in some submodules.
* bpo-32857: Raise error when tkinter after_cancel() is called with None. ↵Cheryl Sabella2018-03-041-0/+108
| | | | (GH-5701)
* Issue #27025: Generated names for Tkinter widgets are now more meanfulSerhiy Storchaka2016-06-131-0/+8
| | | | and recognizirable.
* Issue #22236: Tkinter tests now don't reuse default root window. New rootSerhiy Storchaka2014-08-241-5/+2
|\ | | | | | | | | | | | | | | | | 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-5/+2
| | | | | | | | | | | | | | | | | | 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 #20636: Improved the repr of Tkinter widgets.Serhiy Storchaka2014-04-041-0/+5
|/
* Issue #16541: tk_setPalette() now works with keyword arguments.Serhiy Storchaka2013-01-011-0/+45
Added a test for tk_setPalette().