fix error

This commit is contained in:
Irony 2019-05-07 22:25:44 +08:00
parent f5c972fa8d
commit 3251d2eaae

View file

@ -32,7 +32,7 @@ if __name__ == '__main__':
app = QApplication(sys.argv)
engine = QQmlApplicationEngine()
engine.objectCreated.connect(
lambda obj, _: (QMessageBox.critical(None, '错误', '运行失败可能是当前PyQt版本不支持'), engine.quit()) if not obj else 0)
lambda obj, _: (QMessageBox.critical(None, '错误', '运行失败可能是当前PyQt版本不支持'), engine.quit) if not obj else 0)
engine.addImportPath('imports')
engine.load(QUrl('flatstyle.qml'))