(self, data)
Set input dataset.
Set input dataset.
Set input dataset .
def set_data(self, data):
        """Set input dataset."""
        self.closeContext()
        self.clear()
        self.data = data

        if self.data is not None:
            self.setup_model(data)
            self.le_output_name.setPlaceholderText(data.name)
            self.openContext(self.data)
            self._editor.set_merge_context(self._merge_dialog_settings)
            self._restore()
        else:
            self.le_output_name.setPlaceholderText("")

        self.commit()
def set_data ( self , data ) : self . closeContext ( ) self . clear ( ) self . data = data if self . data is not None : self . setup_model ( data ) self . le_output_name . setPlaceholderText ( data . name ) self . openContext ( self . data ) self . _editor . set_merge_context ( self . _merge_dialog_settings ) self . _restore ( ) else : self . le_output_name . setPlaceholderText ( "" ) self . commit ( )