本文整理汇总了Python中gui.threadGUI.ThreadGUI.start方法的典型用法代码示例。如果您正苦于以下问题:Python ThreadGUI.start方法的具体用法?Python ThreadGUI.start怎么用?Python ThreadGUI.start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.threadGUI.ThreadGUI
的用法示例。
在下文中一共展示了ThreadGUI.start方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Sensor
# 需要导入模块: from gui.threadGUI import ThreadGUI [as 别名]
# 或者: from gui.threadGUI.ThreadGUI import start [as 别名]
from PyQt4 import QtCore, QtGui
from gui.GUI import MainWindow
from gui.threadGUI import ThreadGUI
from sensors.sensor import Sensor
from sensors.threadSensor import ThreadSensor
from MyAlgorithm import MyAlgorithm
if __name__ == "__main__":
sensor = Sensor()
algorithm=MyAlgorithm(sensor)
app = QtGui.QApplication(sys.argv)
myGUI = MainWindow()
myGUI.setSensor(sensor)
myGUI.setAlgorithm(algorithm)
myGUI.show()
t1 = ThreadSensor(sensor,algorithm)
t1.daemon=True
t1.start()
t2 = ThreadGUI(myGUI)
t2.daemon=True
t2.start()
sys.exit(app.exec_())
示例2: print
# 需要导入模块: from gui.threadGUI import ThreadGUI [as 别名]
# 或者: from gui.threadGUI.ThreadGUI import start [as 别名]
#!/usr/bin/env python
import sys
from gui.gui import Window
from gui.threadGUI import ThreadGUI
from ros_manager.ros import RosManager
from PyQt5.QtWidgets import QApplication
if __name__ == "__main__":
print("Starting the ARIAC arm controller... \n")
#start the communicating object
ros_manager = RosManager()
app = QApplication(sys.argv)
myGUI = Window(ros_manager)
myGUI.show()
t = ThreadGUI(myGUI)
t.daemon=True
t.start()
sys.exit(app.exec_())