- def start_thread(self):
- if self.thread is not None:
- return
-
- self.startbutton.setEnabled(False)
- self.stopbutton.setEnabled(True)
-
- self.thread = GPSThread(self.addr, self.name, self)
- self.connect(self.thread, SIGNAL("status_updated(QString)"), self.update_status)
- self.connect(self.thread, SIGNAL("data_updated(QString)"), self.update_monitor)
- self.connect(self.thread, SIGNAL("finished()"), self.gc_thread)
- self.thread.start()
-
- def stop_thread(self):