cpython/Lib/tkinter/test
Miss Islington (bot) c3e5d0d936
[3.11] gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453) (GH-111858)
* Remove mention of "vsapi" element type from the documentation.
* Add tests for element_create() and other ttk.Style methods.
* Add examples for element_create() in the documentation.

(cherry picked from commit 005d1e8fc8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-11-27 20:14:30 +00:00
..
test_tkinter [3.11] gh-75666: Tkinter: add tests for binding (GH-111202) (GH-111256) 2023-10-24 14:53:38 +03:00
test_ttk [3.11] gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453) (GH-111858) 2023-11-27 20:14:30 +00:00
__init__.py
README
support.py [3.11] gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) (GH-107719) 2023-08-07 14:48:43 +00:00
widget_tests.py [3.11] gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) (GH-107719) 2023-08-07 14:48:43 +00: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).