visiannot.visiannot.components.FromCursorTemporalRangeWidget

Summary

Module defining TimeEditWidget

Classes

visiannot.visiannot.components.FromCursorTemporalRangeWidget.FromCursorTemporalRangeWidget(…)

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: object

Widget for selecting a duration of temporal range to be started at the current frame in ViSiAnnoT

Parameters
  • visi – associated instance of ViSiAnnoT

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

  • from_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:

from_cursor_list

(list) Durations of temporal range to be started at the current position of the temporal cursor in the associated instance of ViSiAnnoT

combo_box

(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 currentIndexChanged of the attribute combo_box.

It sets first_frame to frame_id and last_frame so that the temporal range spans the selected value of the combo box combo_box. Then it calls the method update_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

from_cursor_list

(list) Durations of temporal range to be started at the current position of the temporal cursor in the associated instance of ViSiAnnoT

Each element is a list of integers with 2 elements: (minute, second).