annotate Lib/lib-tk/test/README @ 79675:c0a2294de787 2.7

Issue #16199: Backport 2to3 typo fix from 3.2.
author Chris Jerdonek <chris.jerdonek@gmail.com>
date Thu, 11 Oct 2012 16:15:46 -0700
parents c101f78aed8b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51131
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
1 Writing new tests
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
2 =================
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
3
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
4 Precaution
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
5 ----------
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
6
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
7 New tests should always use only one Tk window at once, like all the
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
8 current tests do. This means that you have to destroy the current window
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
9 before creating another one, and clean up after the test. The motivation
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
10 behind this is that some tests may depend on having its window focused
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
11 while it is running to work properly, and it may be hard to force focus
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
12 on your window across platforms (right now only test_traversal at
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
13 test_ttk.test_widgets.NotebookTest depends on this).
c101f78aed8b Added the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo <ggpolo@gmail.com>
parents:
diff changeset
14