def main():
global app
app = QtWidgets.QApplication(sys.argv)
my_args = parse_args(app.arguments())
main_window = MainWindow()
setup_logger(main_window, debug=my_args.debug)
if my_args.full_load:
AutoConsumed._timeout = float('inf')
if my_args.repo_path:
QtCore.QMetaObject.invokeMethod(
main_window, 'open_repo',
Qt.Qt.QueuedConnection,
QtCore.Q_ARG(str, my_args.repo_path),
)
main_window.show()
return app.exec_()
评论列表
文章目录