cpython/Lib/test/test_tkinter
Miss Islington (bot) d9606d9135
[3.14] gh-161179: Fix function names in os.{spawnve,preadv}() and tkinter.wm_attributes() error messages (GH-161180) (#161211)
(cherry picked from commit 4fb0070619)

Co-authored-by: Thejesh <35212698+thejesh23@users.noreply.github.com>
2026-11-03 14:17:11 +00:00
..
__init__.py
__main__.py
README
support.py [3.14] gh-154357: Fix tkinter, ttk and IDLE tests depending on the window manager (GH-154370) (GH-157064) 2026-09-07 17:06:30 +03:00
test_colorchooser.py
test_dnd.py [3.14] gh-151678: Add more tests for tkinter.dnd (GH-152362) (GH-152368) 2026-06-27 10:38:48 +03:00
test_filedialog.py [3.14] gh-154357: Fix tkinter, ttk and IDLE tests depending on the window manager (GH-154370) (GH-157064) 2026-09-07 17:06:30 +03:00
test_font.py [3.14] gh-156961: Fix tkinter.font.Font for a font name returned as a Tcl object (GH-157028) (GH-157404) 2026-09-13 08:33:42 +00:00
test_geometry_managers.py [3.14] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) (GH-152501) 2026-06-28 19:53:29 +03:00
test_images.py [3.14] gh-153422: Assert bool return type in tkinter tests (GH-153429) (GH-153439) (GH-153442) 2026-07-09 15:45:11 +00:00
test_loadtk.py
test_messagebox.py
test_misc.py [3.14] gh-161179: Fix function names in os.{spawnve,preadv}() and tkinter.wm_attributes() error messages (GH-161180) (#161211) 2026-11-03 14:17:11 +00:00
test_scrolledtext.py [3.14] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) (GH-151760) 2026-06-20 09:17:18 +03:00
test_simpledialog.py [3.14] gh-154357: Fix tkinter, ttk and IDLE tests depending on the window manager (GH-154370) (GH-157064) 2026-09-07 17:06:30 +03:00
test_text.py [3.14] gh-159127: Fix tests depending on the layout of unmapped text widgets (GH-159128) (GH-159134) 2026-10-10 23:01:19 +03:00
test_tkinter_pipe.py [3.14] gh-140146: Fix for stdin redirection to a pipe with interactive tkinter on Windows (GH-148819) (GH-152561) 2026-06-29 09:11:33 +00:00
test_variables.py [3.14] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods (GH-151751) (GH-151755) 2026-06-19 23:10:07 +00:00
test_widgets.py [3.14] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717) (GH-153738) 2026-07-15 03:33:49 +00:00
widget_tests.py [3.14] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) (GH-152501) 2026-06-28 19:53:29 +03:00

Writing new tests
=================

Precaution
----------

    New tests should always use only one Tk window at once, like all the
    current tests do. This means that you have to destroy the current window
    before creating another one, and clean up after the test. The motivation
    behind this is that some tests may depend on having its window focused
    while it is running to work properly, and it may be hard to force focus
    on your window across platforms (right now only test_traversal at
    test_ttk.test_widgets.NotebookTest depends on this).