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

apply()[source]
check_labels()[source]
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)[source]
load_labels(checked=False, test_name=None)[source]
reset()[source]
save_labels()[source]

Save labels modified by the user.

Todo

Save labels modified by the user

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