visiannot.visiannot.components.FromCursorTemporalRangeWidget¶
Summary¶
Module defining TimeEditWidget
Classes¶
|
Widget for selecting a duration of temporal range to be started at the current frame in ViSiAnnoT |
API¶
Class FromCursorTemporalRangeWidget¶
-
class
visiannot.visiannot.components.FromCursorTemporalRangeWidget.FromCursorTemporalRangeWidget(visi, widget_position, from_cursor_list)[source]¶ Bases:
objectWidget for selecting a duration of temporal range to be started at the current frame in ViSiAnnoT
- Parameters
visi – associated instance of
ViSiAnnoTwidget_position (tuple or list) – position of the widget in the layout of the associated instance of
ViSiAnnoTfrom_cursor_list (list) – durations of temporal range to be started at the current frame in ViSiAnnoT, each element is a list of integers with 2 elements
(minute, second)
Methods:
call_combo_from_cursor(ite_combo, visi)Callback method for selecting a pre-defined temporal range that begins at the current temporal cursor position
Attributes:
(list) Durations of temporal range to be started at the current position of the temporal cursor in the associated instance of
ViSiAnnoT(
pyqt_overlayer.ComboBox) Combo box for selecting a temporal range starting at the current frame-
call_combo_from_cursor(ite_combo, visi)[source]¶ Callback method for selecting a pre-defined temporal range that begins at the current temporal cursor position
Connected to the signal
currentIndexChangedof the attributecombo_box.It sets
first_frametoframe_idandlast_frameso that the temporal range spans the selected value of the combo boxcombo_box. Then it calls the methodupdate_signal_plot().- Parameters
ite_combo (int) – index of the selected value in the combo box
combo_box
-
combo_box¶ (
pyqt_overlayer.ComboBox) Combo box for selecting a temporal range starting at the current frame