summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.9] bpo-33289: Return RGB triplet of ints instead of floats from ↵Miss Islington (bot)2021-01-251-2/+1
| | | | | | | | | | tkinter.colorchooser (GH-6578). (GH-24318) (cherry picked from commit 6713e869c4989c04318158b406c30a147ea52904) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> (cherry picked from commit 3d5434d5cbc945c58be663e3dbd5ef4875677b7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.8] bpo-42759: Fix equality comparison of Variable and Font in Tkinter ↵Serhiy Storchaka2021-01-011-7/+5
| | | | | | | | (GH-23968) (GH-24026) Objects which belong to different Tcl interpreters are now always different, even if they have the same name. (cherry picked from commit 1df56bc0597a051c13d53514e120e9b6764185f8)
* [3.8] bpo-42630: Improve error reporting in Tkinter for absent default root ↵Serhiy Storchaka2020-12-191-21/+30
| | | | | | | | | | | | | | | (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-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)Miss Skeleton (bot)2020-10-091-3/+2
| | | | | (cherry picked from commit eb38c6b7aa35d3003ec0958533421902d19ce408) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* fix `EventType` basesMiss Islington (bot)2020-09-221-6/+6
| | | `StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
* bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)Miss Islington (bot)2020-07-271-1/+1
| | | | | | | ... 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> (cherry picked from commit f1d40f941a6483b1d4ea10f1051ace7b426fb8e7) Co-authored-by: Akuli <akuviljanen17@gmail.com>
* [3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125)Serhiy Storchaka2019-11-121-2/+2
| | | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>". (cherry picked from commit 138ccbb02216ca086047c3139857fb44f3dab1f9)
* bpo-25451: Add transparency methods to tkinter.PhotoImage. (GH-10406)Zackery Spytz2019-04-051-0/+9
|
* bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760)Juliette Monsel2018-10-181-4/+4
|
* bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)Juliette Monsel2018-10-121-0/+9
|
* bpo-34964: Make Tkinter sources more readable by adding blank lines. (GH-9822)Serhiy Storchaka2018-10-121-4/+533
|
* bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617)Juliette Monsel2018-10-081-0/+18
| | | | | Implement the methods selection_from(), selection_range(), selection_present() and selection_to() for Tkinter Spinbox.
* bpo-33974: Fix passing special characters to ttk widgets. (GH-7986)Serhiy Storchaka2018-06-301-1/+4
| | | | Fix passing lists and tuples of strings containing special characters '"', '\\', '{', '}' and '\n' as options to tkinter.ttk widgets.
* bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)Andrés Delfino2018-04-171-2/+2
|
* bpo-32857: Raise error when tkinter after_cancel() is called with None. ↵Cheryl Sabella2018-03-041-3/+6
| | | | (GH-5701)
* Fix spelling mistakes in tkinter.py (#1716)Vijay Kumar2017-05-221-6/+6
| | | Ran the docstrings through spell checker, and fixed spelling issues.
* Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale causedSerhiy Storchaka2016-10-301-2/+6
|\ | | | | | | | | 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-2/+6
| | | | | | | | | | by representing the scale as float value internally in Tk. tkinter.IntVar now works if float value is set to underlying Tk variable.
| * Issue #22115: Fixed tracing Tkinter variables:Serhiy Storchaka2016-06-261-7/+12
| | | | | | | | | | | | * tracing in the "u" mode now works * trace_vdelete() with wrong mode no longer break tracing * trace_vinfo() now always returns a list of pairs of strings
* | Issue #27025: Generated names for Tkinter widgets now start by the "!" prefixSerhiy Storchaka2016-10-251-2/+2
| | | | | | | | for readability (was "`").
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-1/+1
| |
* | Issue #22115: Added methods trace_add, trace_remove and trace_info in theSerhiy Storchaka2016-06-261-15/+82
| | | | | | | | | | | | tkinter.Variable class. They replace old methods trace_variable, trace, trace_vdelete and trace_vinfo that use obsolete Tcl commands and might not work in future versions of Tcl.
* | Issue #20350. tkapp.splitlist() is now always used instead of unreliableSerhiy Storchaka2016-06-251-9/+7
| | | | | | | | tkapp.split() in the tkinter package.
* | Issue #27294: Numerical state in the repr for Tkinter event objects is nowSerhiy Storchaka2016-06-181-8/+21
| | | | | | | | represented as a compination of known flags.
* | Issue #27025: Generated names for Tkinter widgets are now more meanfulSerhiy Storchaka2016-06-131-4/+12
| | | | | | | | and recognizirable.
* | Issue #27294: Improved repr for Tkinter event objects.Serhiy Storchaka2016-06-111-2/+73
| |
* | Issue #27171: Merge typo fixes from 3.5Martin Panter2016-06-021-1/+1
|\ \ | |/
| * Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
| |
* | Issue #27031: Removed dummy methods in Tkinter widget classes: tk_menuBar()Serhiy Storchaka2016-05-161-12/+0
| | | | | | | | and tk_bindForTraversal().
* | Merge typo fixes from 3.5Martin Panter2016-05-081-3/+3
|\ \ | |/
| * Corrections for a/an in code comments and documentationMartin Panter2016-05-081-1/+1
| |
| * Fix typos in comments, documentation and test method namesMartin Panter2016-05-081-2/+2
| |
* | Remove outdated TkVersion checks.Serhiy Storchaka2016-04-251-3/+0
| | | | | | | | Minimal supported Tcl/Tk version is 8.4, and this is checked in _tkinter.c.
* | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka2016-04-171-1/+1
|\ \ | |/ | | | | messages.
| * Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
| |
* | Merge with 3.5Terry Jan Reedy2016-03-111-4/+8
|\ \ | |/
| * Issue 25959: Explain in docstring that PhotoImage.zoom arguments areTerry Jan Reedy2016-03-111-4/+8
| | | | | | | | | | multipliers, not final sizes. Explain y default for .zoom and .subsample. Initial patch by Serhiy Storchaka.
* | Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.Serhiy Storchaka2016-03-091-2/+3
|\ \ | |/
| * Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.Serhiy Storchaka2016-03-091-2/+3
| | | | | | | | Added few missed tests for configure options.
* | Issue #26304: Merge doc wording from 3.5Martin Panter2016-02-101-2/+2
|\ \ | |/
| * Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similarMartin Panter2016-02-101-2/+2
| | | | | | | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear.
* | Issue #25263: Trying to fix test_use on Windows.Serhiy Storchaka2015-11-091-2/+1
|/ | | | | Avoid possible weird behavior of WideInt convertion. "winfo id" always returns string hexadecimal representation.
* Issue #25523: Merge a-to-an corrections from 3.4.Serhiy Storchaka2015-11-021-1/+1
|\
| * Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-021-1/+1
| |
* | Issue #20035: Reimplement tkinter._fix module as a C function.Zachary Ware2015-05-221-3/+0
| | | | | | | | | | The new private C function makes no permanent changes to the environment and is #ifdef'd out on non-Windows platforms.
* | Issue #23880: Tkinter's getint() and getdouble() now support Tcl_Obj.Serhiy Storchaka2015-05-061-60/+72
| | | | | | | | Tkinter's getdouble() now supports any numbers (in particular int).
* | Issue #23943: Fix typos. Patch by Piotr Kasprzyk.Berker Peksag2015-04-141-1/+1
|\ \ | |/
| * Issue #23943: Fix typos. Patch by Piotr Kasprzyk.Berker Peksag2015-04-141-1/+1
| |
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-1/+1
| | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* | Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and alwaysSerhiy Storchaka2015-04-041-0/+5
|\ \ | |/ | | | | | | returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.