def main(): with qtimer.create_qtimer(CONFIG_PATH, DEFAULT_CONFIG_PATH) as backend: app = QApplication(sys.argv) window = QTimerMainWindow(backend) window.show() sys.exit(app.exec_())
def main(): with create_qtimer(CONFIG_PATH) as core: cmd_line = QTimerCommandLine(core) args = cmd_line.parseArgs() cmd_line.executeCommand(args)