2009-01-28 09:09:03 -04:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
from test import test_support
|
|
|
|
|
2009-03-31 15:32:17 -03:00
|
|
|
# Skip this test if _tkinter does not exist.
|
|
|
|
test_support.import_module('_tkinter')
|
|
|
|
|
2009-01-28 09:09:03 -04:00
|
|
|
this_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test'))
|
|
|
|
if lib_tk_test not in sys.path:
|
|
|
|
sys.path.append(lib_tk_test)
|
|
|
|
|
|
|
|
import runtktests
|
|
|
|
|
|
|
|
def test_main():
|
2009-01-28 15:28:04 -04:00
|
|
|
test_support.run_unittest(
|
|
|
|
*runtktests.get_tests(gui=False, packages=['test_ttk']))
|
2009-01-28 09:09:03 -04:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
test_main()
|