def execute(self): # color = self.color.color.name(QtGui.QColor.HexRgb) query = Query(self.input.toPlainText()) query.execute() if query.error == Query.NoError: selection = Selection() selection.query = query DataView.Model.headerDataChanged.emit(Qt.Vertical, 0, Row.count())