wonambi.widgets.labels module
Widget to redefine the labels.
- class wonambi.widgets.labels.Labels(parent)[source]
Bases:
QWidget
- chan_name
list of all the labels (with the user-defined changes)
- Type:
list of str
- create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)[source]
- update(checked=False, labels=None, custom_labels=None)[source]
Use this function when we make changes to the list of labels or when we load a new dataset.
- Parameters:
checked (bool) – argument from clicked.connect
labels (list of str) – list of labels in the dataset (default)
custom_labels (list of str) – list of labels from a file