Example #1
0
def test_main():
    with test_support.DirsOnSysPath(lib_tk_test):
        from test_ttk.support import get_tk_root

        try:
            test_support.run_unittest(*runtktests.get_tests(text=False, packages=["test_ttk"]))
        finally:
            get_tk_root().destroy()
Example #2
0
def test_main():
    with test_support.DirsOnSysPath(lib_tk_test):
        from test_ttk.support import get_tk_root
        try:
            test_support.run_unittest(
                *runtktests.get_tests(text=False, packages=['test_ttk']))
        finally:
            get_tk_root().destroy()
def test_main(enable_gui=False):
    if enable_gui:
        if test_support.use_resources is None:
            test_support.use_resources = ["gui"]
        elif "gui" not in test_support.use_resources:
            test_support.use_resources.append("gui")

    with test_support.DirsOnSysPath(lib_tk_test):
        from test_ttk.support import get_tk_root

        try:
            test_support.run_unittest(*runtktests.get_tests(text=False, packages=["test_ttk"]))
        finally:
            get_tk_root().destroy()
Example #4
0
def test_main(enable_gui=False):
    if enable_gui:
        if test_support.use_resources is None:
            test_support.use_resources = ['gui']
        elif 'gui' not in test_support.use_resources:
            test_support.use_resources.append('gui')

    with test_support.DirsOnSysPath(lib_tk_test):
        from test_ttk.support import get_tk_root
        try:
            test_support.run_unittest(
                *runtktests.get_tests(text=False, packages=['test_ttk']))
        finally:
            get_tk_root().destroy()