You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
566 B

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