summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29093)Miss Islington (bot)2021-10-202-5/+11
| | | | | | | | | | Since v8.6.11, a few configuration options seem to accept an empty value where they did not previously; particularly the `type` of a `Menu` widget, and the `compound` of any ttk widget with a label. Providing an explicit expected error message to `checkEnumParam` bypasses the check of an empty value, which no longer raises `TclError`. (cherry picked from commit 4fe454c6f54b0948af67b53af6c2f35af6377e69) Co-authored-by: Zachary Ware <zach@python.org>
* [3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as ↵Miss Islington (bot)2021-04-252-0/+14
| | | | | | | | dialogs by window managers on macOS and X Window (GH-25187). (GH-25588) (GH-25592) (cherry picked from commit 3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c) (cherry picked from commit 9a165399aec930f27639dd173426ccc33586662b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-33289: Return RGB triplet of ints instead of floats from ↵Miss Islington (bot)2021-01-254-26/+100
| | | | | | | | | | 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-014-12/+35
| | | | | | | | (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] Rename Tkinter tests for widget options (GH-23944) (GH-23946)Serhiy Storchaka2020-12-263-210/+212
| | | | | | 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-1915-78/+305
| | | | | | | | | | | | | | | (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-40219: Lowered ttk LabeledScale dummy (GH-21467)Miss Islington (bot)2020-12-151-1/+4
| | | | | (cherry picked from commit b9ced83cf427ec86802ba4c9a562c6d9cafc72f5) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 ↵Miss Islington (bot)2020-12-031-0/+9
| | | | | | | (GH-23612) (cherry picked from commit f3c3ea91a76526edff928c95b9c6767e077b7448) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42142: Try to fix timeouts in ttk tests (GH-23474)Miss Islington (bot)2020-11-302-19/+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-42328: Fix tkinter.ttk.Style.map(). (GH-23300)Miss Islington (bot)2020-11-233-28/+107
| | | | | | | | | 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. (cherry picked from commit dd844a2916fb3a8f481ec7c732802c13c3375691) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* 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>
* bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)Miss Skeleton (bot)2020-10-091-0/+48
| | | | | (cherry picked from commit f25323a307a72c40862c87c2df822f83be6645da) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41306: Allow scale value to not be rounded (GH-21715)Miss Skeleton (bot)2020-10-081-1/+2
| | | | | | | | | | This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed). Going into more detail for those who want it, the Tk change was made in [commit 591f68c](https://github.com/tcltk/tk/commit/591f68cb382525b72664c6fecaab87742b6cc87a) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/591f68cb382525b72664c6fecaab87742b6cc87a/generic/tkScale.cGH-L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`). Automerge-Triggered-By: @pablogsal (cherry picked from commit aecf036738a404371303e770f4ce4fd9f7d43de7) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.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-272-1/+5
| | | | | | | ... 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>
* bpo-39152: add missing ttk.Scale.configure return value (GH-17815)Miss Islington (bot)2020-01-052-11/+7
| | | | | | | tkinter.ttk.Scale().configure([name]) now returns a configuration tuple for name or a list thereof for all options. Based on patch Giovanni Lombardo. (cherry picked from commit 5ea7bb25e3b192d6c49a49c9e3b316f8559602aa) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.8] bpo-39136: Fixed typos (GH-17720)Terry Jan Reedy2019-12-291-2/+2
| | | | | | | | funtion -> function; configuraton -> configuration; defintitions -> definitions; focusses -> focuses; necesarily -> necessarily; follwing -> following; Excape -> Escape, (cherry picked from commit 6c7bb38ff2799ac218e6df598b2b262f89e2bc1e)
* [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-13153: Use OS native encoding for converting between Python and Tcl. ↵Miss Islington (bot)2019-10-042-10/+25
| | | | | | | | | | | | | | | (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>
* Fix typos mostly in comments, docs and test names (GH-15209)Miss Islington (bot)2019-08-301-1/+1
| | | | | (cherry picked from commit 39d87b54715197ca9dcb6902bb43461c0ed701a2) Co-authored-by: Min ho Kim <minho42@gmail.com>
* bpo-25451: Add transparency methods to tkinter.PhotoImage. (GH-10406)Zackery Spytz2019-04-052-0/+18
|
* bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk ↵Ned Deily2019-02-241-1/+6
| | | | (GH-12011)
* Fix yet one error in checking Tcl version. (GH-10189)Serhiy Storchaka2018-10-281-1/+1
|
* Fix checking for bugfix Tcl version. (GH-10185)Serhiy Storchaka2018-10-281-1/+1
|
* bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760)Juliette Monsel2018-10-182-5/+12
|
* bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)Juliette Monsel2018-10-122-0/+32
|
* bpo-34964: Make Tkinter sources more readable by adding blank lines. (GH-9822)Serhiy Storchaka2018-10-128-9/+565
|
* bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617)Juliette Monsel2018-10-082-0/+68
| | | | | Implement the methods selection_from(), selection_range(), selection_present() and selection_to() for Tkinter Spinbox.
* bpo-34189: Fix checking for bugfix Tcl version. (GH-8397)Serhiy Storchaka2018-07-222-4/+14
|
* bpo-34189: Add simple tests for new Tk widget options. (GH-8396)Serhiy Storchaka2018-07-221-2/+25
|
* 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-33096: Fix ttk.Treeview.insert. (GH-6228)Garvit Khatri2018-03-262-1/+10
| | | | | Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0 and iid=False would be same.
* bpo-32857: Raise error when tkinter after_cancel() is called with None. ↵Cheryl Sabella2018-03-042-3/+114
| | | | (GH-5701)
* bpo-32585: Add tkinter.ttk.Spinbox. (#5221)Alan D Moore2018-02-092-2/+206
|
* [3.8] bpo-31508: Remove support of arguments in ↵Serhiy Storchaka2018-02-012-42/+2
| | | | | | 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-142-3/+3
| | | | | | | | * 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-242-3/+3
| | | | | Defer removing old behavior to 3.8. Document new feature of selection_set() and friends.
* ttk: fix LabeledScale and OptionMenu destroy() method (#3025)Victor Stinner2017-08-081-4/+8
| | | | | | | | bpo-31135: Call the parent destroy() method even if the used attribute doesn't exist. The LabeledScale.destroy() method now also explicitly clears label and scale attributes to help the garbage collector to destroy all widgets.
* bpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)csabella2017-07-312-1/+27
| | | between instances of OptionMenu.
* bpo-30310: Add a test for non-ascii font family. (#1567) (#1832)Serhiy Storchaka2017-05-271-1/+11
|
* Fix spelling mistakes in tkinter.py (#1716)Vijay Kumar2017-05-221-6/+6
| | | Ran the docstrings through spell checker, and fixed spelling issues.
* bpo-29776: Use decorator syntax for properties. (#585)Serhiy Storchaka2017-03-191-7/+4
|
* Issue 28923: Remove editor artifacts from Tix.py,Terry Jan Reedy2016-12-221-4/+0
|\
| * Issue 28923: Remove editor artifacts from Tix.py.Terry Jan Reedy2016-12-221-4/+0
| |
* | Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale causedSerhiy Storchaka2016-10-303-9/+21
|\ \ | |/ | | | | | | 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-303-9/+21
| | | | | | | | | | by representing the scale as float value internally in Tk. tkinter.IntVar now works if float value is set to underlying Tk variable.
* | Issue #27025: Generated names for Tkinter widgets now start by the "!" prefixSerhiy Storchaka2016-10-251-2/+2
| | | | | | | | for readability (was "`").
* | Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addinSerhiy Storchaka2016-10-241-1/+5
|\ \ | |/ | | | | a workaround to Tix library bug.