def _onRestore(self): widgets = getWidgetsOfType(self, TangoConfigLineEdit) for w in widgets: param = str(w.text()) if w.getValue() != param: w.setText(param)
def _onApply(self): widgets = getWidgetsOfType(self, TangoConfigLineEdit) for w in widgets: param = str(w.text()) if w.getValue() != param: w.writeValue()