def __init__(self, param: Parameter, depth): super().__init__(param, depth) self.execute_button = QPushButton() self.execute_button.setFixedHeight(20) # self.execute_button.setFixedWidth(48) self.execute_button.clicked.connect(self.buttonClicked) self.execute_button.setText(param.name()) self.label = QLabel() self.label.setFixedHeight(20)
def _set_value(self, param: Parameter, value): """Update the value for an operation when it is changed in he corresponding Parameter.""" self.filled_values[param.name()] = value
def _set_fixed(self, param: Parameter, value): """Update the fixed state for the operation when it is toggled in the corresponding Parameter.""" self.fixed[param.name()] = value
def valueChanged(obj: pgp.Parameter, newVal): accessor = SettingAccessor() accessor[obj.name()] = newVal