本文整理汇总了Python中PyQt5.QtGui.QGuiApplication.processEvents方法的典型用法代码示例。如果您正苦于以下问题:Python QGuiApplication.processEvents方法的具体用法?Python QGuiApplication.processEvents怎么用?Python QGuiApplication.processEvents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtGui.QGuiApplication
的用法示例。
在下文中一共展示了QGuiApplication.processEvents方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print
# 需要导入模块: from PyQt5.QtGui import QGuiApplication [as 别名]
# 或者: from PyQt5.QtGui.QGuiApplication import processEvents [as 别名]
self.updateThread.temp_text.connect(self.updateMOTOR_TEMP)
self.updateThread.temp_color.connect(self.updateMOTOR_TEMP_HACK)
self.updateThread.shift.connect(self.updateSHIFT)
self.updateThread.glv_soc.connect(self.updateGLV_SOC)
self.updateThread.motor_temp.connect(self.updateMOTOR_OVER_TEMP)
self.updateThread.ess_temp.connect(self.updateESS_TEMP)
self.updateThread.charging.connect(self.updateCHARGING)
self.updateThread.fuel_low.connect(self.updateFUEL_LOW)
self.updateThread.CAN_down.connect(self.updateCAN_DOWN)
self.updateThread.motor_on.connect(self.updateMOTOR_ON)
self.updateThread.tachNeedle.connect(self.updateTachNeedle)
self.updateThread.ess_soc.connect(self.updateESS_SOC)
self.updateThread.fuel.connect(self.updateFUEL)
if not self.updateThread.isRunning():
# If the thread has not been started let's kick it off
self.updateThread.start()
if __name__ == '__main__':
print("YOU HAVE 1 SECOND!")
time.sleep(1)
app = QGuiApplication(sys.argv)
win = MainApplication()
win.show()
app.processEvents()
sys.exit(app.exec_())