def set_data(self, data):
    'Set data'
    if (data != self.editor.model.get_data()):
        self.editor.set_data(data)
        self.editor.adjust_columns()
Set data
def set_data(self, data):
    
    if (data != self.editor.model.get_data()):
        self.editor.set_data(data)
        self.editor.adjust_columns()