def download_configs(self): task = ThreadTask(self._download_configs) # submit task self.commit_task(task) # return result when task has been completed return task.result()
def is_connected(self): task = ThreadTask(self._is_connected) # submit task self.commit_task(task) # return result when task has been completed return task.result()
def clear_camera(self): # create task task = ThreadTask(self._clear_camera) # submit task self.commit_task(task) # return result when task has been completed return task.result()
def capture_images(self): # create task task = ThreadTask(self._capture_images) # submit task self.commit_task(task) # return result when task has been completed return task.result()
def set_capture_mode(self, capture_mode): # create task task = ThreadTask(self._set_capture_mode, capture_mode) # submit task self.commit_task(task) # return result when task has been completed return task.result()
def get_camera_configs(self): """ Returns the camera configs stored in the camera manager - these should be the up-to-date configs. """ task = ThreadTask(self.camera_configs.copy) # submit task self.commit_task(task) # return result when task has been completed return task.result()