qtGui.py 文件源码

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

项目:mlox 作者: mlox 项目源码 文件源码
def start(self):
        """Display the GUI"""
        myApp = QApplication(sys.argv)
        myEngine = QQmlApplicationEngine()
        sys.excepthook = lambda typ, val, tb: self.error_handler(typ, val, tb)
        myEngine.rootContext().setContextProperty("python", self)  # Need to set this before loading
        myEngine.load(QUrl(qml_file))
        # These two are hacks, because getting them in the __init__ and RAII working isn't
        self.debug_window = ScrollableDialog()
        self.clipboard = myApp.clipboard()

        self.analyze_loadorder(None)

        sys.exit(myApp.exec_())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号