__init__.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:git-annex-metadata-gui 作者: alpernebbi 项目源码 文件源码
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_()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号