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_())
评论列表
文章目录