Back to index

python3.2  3.2.2
Functions
test.test_ttk_guionly Namespace Reference

Functions

def test_main

Function Documentation

def test.test_ttk_guionly.test_main (   enable_gui = False)

Definition at line 23 of file test_ttk_guionly.py.

00023 
00024 def test_main(enable_gui=False):
00025     if enable_gui:
00026         if support.use_resources is None:
00027             support.use_resources = ['gui']
00028         elif 'gui' not in support.use_resources:
00029             support.use_resources.append('gui')
00030 
00031     try:
00032         support.run_unittest(
00033                 *runtktests.get_tests(text=False, packages=['test_ttk']))
00034     finally:
00035         get_tk_root().destroy()

Here is the call graph for this function: