summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/commondialog.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42721: Improve using simple dialogs without root window (GH-23897)Serhiy Storchaka2020-12-251-16/+11
| | | | | | | | | | | | | | | | | When simple query dialogs (tkinter.simpledialog), message boxes (tkinter.messagebox) or color choose dialog (tkinter.colorchooser) are created without arguments master and parent, and the default root window is not yet created, a new temporary hidden root window will be created automatically. It will not be set as the default root window and will be destroyed right after closing the dialog window. It will help to use these simple dialog windows in programs which do not need other GUI. Previously, message boxes and color chooser created the blank root window and left it after closing the dialog window, and query dialogs just raised an exception. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-15303: Support widgets with boolean value False in Tkinter (GH-23904)Serhiy Storchaka2020-12-251-1/+1
| | | Use `widget is None` instead of checking the boolean value of a widget.
* bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781)Serhiy Storchaka2020-12-191-2/+2
| | | | | | | | | | | * 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-29446: tkinter 'import *' only imports what it should (GH-14864)Flavian Hautbois2019-07-261-3/+5
| | | | Add __all__ to tkinter.__init__ and submodules. Replace 'import *' with explicit imports in some submodules.
* bpo-34964: Make Tkinter sources more readable by adding blank lines. (GH-9822)Serhiy Storchaka2018-10-121-0/+1
|
* Remove outdated TkVersion checks.Serhiy Storchaka2016-04-251-5/+0
| | | | Minimal supported Tcl/Tk version is 8.4, and this is checked in _tkinter.c.
* Tkinter, step 2: adapt imports.Georg Brandl2008-05-171-3/+3
|
* Tkinter move, part 1: move modules.Georg Brandl2008-05-171-0/+60