def create_rows(self):
     rows = []
     for gaze_mapper in self._gaze_mapper_storage:
         alpha = 0.9 if gaze_mapper.activate_gaze else 0.4
         elements = [
             self._create_mapping_range(gaze_mapper, alpha),
             self._create_calibration_range(gaze_mapper, alpha),
             self._create_validation_range(gaze_mapper, alpha),
         ]
         rows.append(Row(label=gaze_mapper.name, elements=elements))
     return rows
Exemple #2
0
 def create_row(self):
     elements = []
     if self._reference_detection_controller.is_running_detection:
         elements.append(self._create_progress_indication())
     elements.append(self._create_reference_location_bars())
     return Row(label="References", elements=elements)
    def update_row(self):
        elements = [self._create_detection_bars()]
        if self._detection_controller.is_running_task:
            elements.append(self._create_progress_indication())

        self.row = Row(label=self.timeline_label, elements=elements)