示例#1
0
文件: gui.py 项目: kostajh/qtimer
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_())
示例#2
0
def main():
	with create_qtimer(CONFIG_PATH) as core:
		cmd_line = QTimerCommandLine(core)
		args = cmd_line.parseArgs()
		cmd_line.executeCommand(args)