def __init__(self, annotations): ParameterTree.__init__(self) self.annotationPage = annotations labels = self.annotationPage.labels print('Labels:', labels) Label_initial_dict = [{ 'name': label, 'type': 'color', 'value': self.annotationPage.label_color_dict[label], 'renamable': True, 'removable': True } for label in labels] self.params = [ ScalableGroup(name="Annotation Labels", children=Label_initial_dict) ] ## Create tree of Parameter objects self.p = Parameter.create(name='params', type='group', children=self.params) self.p.sigTreeStateChanged.connect(self.change) self.setParameters(self.p, showTop=False) self.headerItem().setHidden(True) self.annotationPage.sigLabelsChanged.connect(lambda s: self.re_init())
def __init__(self,dataSet=None): self.dataSet=dataSet ParameterTree.__init__(self) self.setObjectName("ConfigurationWidget") self.setWindowTitle("Measurement Configuration") self.setParams() self.p.sigTreeStateChanged.connect(self.change) self.connections=[] self.p.param("File Configuration","Folder").sigValueChanged.connect(self.folderModeChanged)
def __init__(self, *args, **kwargs): ParameterTree.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): ParameterTree.__init__(self, *args, **kwargs) self.setIndentation(self.APP_PARAMETER_TREE_INDENTATION)