def qapp(pytestconfig): global application if application: pass else: application = PyDMApplication() if pytestconfig.getoption('--dark'): import qdarkstyle application.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5()) return application
def qapp(pytestconfig): global application if application: pass else: application = PyDMApplication(use_main_window=False) if pytestconfig.getoption('--dark'): import qdarkstyle application.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5()) else: typhon.use_stylesheet() return application