Source

pytest-gui / pytest_gui / gtkui / __init__.py

from pygtkhelpers import gthreads

from .main import MainWindow


def main():
    gthreads.initial_setup()

    view = MainWindow()
    # hack to just start the initial collect
    view.run_once(collectonly=True)
    view.show_and_run()
    return 0