class pull_thread(Thread): def __init__(self, thread_comm, parent_running): Thread.__init__(self) self.setDaemon(True) self.photopull = Photopull(thread_comm, parent_running) def run(self): self.photopull.run() def terminate(self): self.photopull.stop()
def __init__(self, thread_comm, parent_running): Thread.__init__(self) self.setDaemon(True) self.photopull = Photopull(thread_comm, parent_running)