wonambi.widgets.modal_widgets module
- class wonambi.widgets.modal_widgets.ChannelDialog(parent)[source]
Bases:
QDialog
Template dialog for event detection.
- parent
the main window
- Type:
instance of QMainWindow
- groups
information about groups from Channels
- Type:
list of dict
- bbox
Button box with Ok and Cancel
- Type:
QDialogButtonBox
- idx_chan
List widget containing all channels for selected group.
- Type:
QListWidget
- idx_stage
List widget containing all stages.
- Type:
QListWidget
- idx_cycle
List widget containing all marked cycles.
- Type:
QListWidget
- one_grp
info about selected group from Channels
- Type:
dict
- get_channels()[source]
Get the selected channel(s in order).
- Returns:
list of str – name of each channel (without group), in original record order
- class wonambi.widgets.modal_widgets.DateTimeDialog(title, start_time, dur)[source]
Bases:
QDialog
Dialog to specify time in the recordings, either as seconds from the start of the recordings or absolute time.
- Parameters:
title (str) – ‘Lights out’ or ‘Lights on’
start_time (datetime) – absolute start time of the recordings
dur (int) – total duration of the recordings
Notes
The value of interest is in self.idx_seconds.value(), which is seconds from the start of the recordings.