diff options
author | Guilherme Polo <ggpolo@gmail.com> | 2009-01-28 14:41:10 (GMT) |
---|---|---|
committer | Guilherme Polo <ggpolo@gmail.com> | 2009-01-28 14:41:10 (GMT) |
commit | 5f2384857468552554bbf9414d1389cf62142ae1 (patch) | |
tree | 6e1e8dc45e86daa3a2df741e55f30a37214a0242 /Lib/test | |
parent | 9844a1ffc3645a431ea9198e52214615e7752de7 (diff) | |
download | cpython-5f2384857468552554bbf9414d1389cf62142ae1.zip cpython-5f2384857468552554bbf9414d1389cf62142ae1.tar.gz cpython-5f2384857468552554bbf9414d1389cf62142ae1.tar.bz2 |
Merged revisions 69050 via svnmerge from
svn+ssh://pythondev/python/trunk
........
r69050 | guilherme.polo | 2009-01-28 11:09:03 -0200 (Wed, 28 Jan 2009) | 2 lines
Added the ttk module. See issue #2983: Ttk support for Tkinter.
........
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_tk_guionly.py | 14 | ||||
-rw-r--r-- | Lib/test/test_tk_textonly.py | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/Lib/test/test_tk_guionly.py b/Lib/test/test_tk_guionly.py new file mode 100644 index 0000000..d3eb5a1c --- /dev/null +++ b/Lib/test/test_tk_guionly.py @@ -0,0 +1,14 @@ +from test import support +from tkinter.test import runtktests + +def test_main(enable_gui=False): + if enable_gui: + if support.use_resources is None: + support.use_resources = ['gui'] + elif 'gui' not in support.use_resources: + support.use_resources.append('gui') + + support.run_unittest(*runtktests.get_tests(text=False)) + +if __name__ == '__main__': + test_main(enable_gui=True) diff --git a/Lib/test/test_tk_textonly.py b/Lib/test/test_tk_textonly.py new file mode 100644 index 0000000..ad13244 --- /dev/null +++ b/Lib/test/test_tk_textonly.py @@ -0,0 +1,8 @@ +from test import support +from tkinter.test import runtktests + +def test_main(): + support.run_unittest(*runtktests.get_tests(gui=False)) + +if __name__ == '__main__': + test_main() |