xref: /third_party/python/Lib/tkinter/test/README (revision 7db96d56)
17db96d56Sopenharmony_ciWriting new tests
27db96d56Sopenharmony_ci=================
37db96d56Sopenharmony_ci
47db96d56Sopenharmony_ciPrecaution
57db96d56Sopenharmony_ci----------
67db96d56Sopenharmony_ci
77db96d56Sopenharmony_ci    New tests should always use only one Tk window at once, like all the
87db96d56Sopenharmony_ci    current tests do. This means that you have to destroy the current window
97db96d56Sopenharmony_ci    before creating another one, and clean up after the test. The motivation
107db96d56Sopenharmony_ci    behind this is that some tests may depend on having its window focused
117db96d56Sopenharmony_ci    while it is running to work properly, and it may be hard to force focus
127db96d56Sopenharmony_ci    on your window across platforms (right now only test_traversal at
137db96d56Sopenharmony_ci    test_ttk.test_widgets.NotebookTest depends on this).
147db96d56Sopenharmony_ci
15