(self)
Reset all variables to their original state.
Reset all variables to their original state.
Reset all variables to their original state .
def reset_all(self):
        """Reset all variables to their original state."""
        self._domain_change_store = {}
        if self.data is not None:
            model = self.variables_model
            for i in range(model.rowCount()):
                midx = model.index(i)
                model.setData(midx, [], TransformRole)
            index = self.selected_var_index()
            if index >= 0:
                self.open_editor(index)
            self._invalidate()
def reset_all ( self ) : self . _domain_change_store = { } if self . data is not None : model = self . variables_model for i in range ( model . rowCount ( ) ) : midx = model . index ( i ) model . setData ( midx , [ ] , TransformRole ) index = self . selected_var_index ( ) if index >= 0 : self . open_editor ( index ) self . _invalidate ( )