Пример #1
0
    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()
Пример #2
0
    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()
Пример #3
0
    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()
Пример #4
0
    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()
Пример #5
0
    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()
Пример #6
0
    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()