visiannot.visiannot.components.CustomTemporalRangeWidget

Summary

Module defining TimeEditWidget

API

Class CustomTemporalRangeWidget

class visiannot.visiannot.components.CustomTemporalRangeWidget.CustomTemporalRangeWidget(visi, widget_position)[source]

Bases: object

Widget for custom temporal range

Parameters
  • visi – associated instance of ViSiAnnoT

  • widget_position (tuple or list) – position of the widget in the layout of the associated instance of ViSiAnnoT

Methods:

time_edit_current(visi)

Callback method to set edit_start to the current frame ViSiAnnoT.frame_id

time_edit_ok(visi)

Callback method to set the temporal range (ViSiAnnoT.first_frame and ViSiAnnoT.last_frame) to the custom temporal range (manually defined with edit_duration and edit_start)

Attributes:

edit_start

(QtWidgets.QDateTimeEdit) Editor of starting datetime of custom temporal range, intialized with beginning datetime of the associated instance of ViSiAnnoT

current_push

(QtWidgets.QPushButton) Push button for defining the starting datetime of custom temporal range as the current frame

edit_duration

(QtWidgets.QTimeEdit) Editor of the duration of custom temporal range

time_edit_push

(QtWidgets.QPushButton) Push button for validating custom temporal range

time_edit_current(visi)[source]

Callback method to set edit_start to the current frame ViSiAnnoT.frame_id

Connected to the signal clicked of current_push.

time_edit_ok(visi)[source]

Callback method to set the temporal range (ViSiAnnoT.first_frame and ViSiAnnoT.last_frame) to the custom temporal range (manually defined with edit_duration and edit_start)

If edit_duration is 0, then the current temporal range duration is kept.

Connected to the signal clicked of time_edit_push.

current_push

(QtWidgets.QPushButton) Push button for defining the starting datetime of custom temporal range as the current frame

edit_duration

(QtWidgets.QTimeEdit) Editor of the duration of custom temporal range

edit_start

(QtWidgets.QDateTimeEdit) Editor of starting datetime of custom temporal range, intialized with beginning datetime of the associated instance of ViSiAnnoT

time_edit_push

(QtWidgets.QPushButton) Push button for validating custom temporal range