Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 def valueChanged(obj: pgp.Parameter, newVal):
     accessor = SettingAccessor()
     accessor[obj.name()] = newVal