def paint(self, painter, option, widget):
        s = QtGui.QStyle.State_Selected | QtGui.QStyle.State_HasFocus
        state = s.__class__(option.state) # option.state
        option.state &= ~s
        painter.pen().setWidth(1)
        result = QtGui.QGraphicsTextItem.paint(self, painter, option, widget)
        option.state = state

        if state & s:
            color = QtGui.QApplication.palette().color(QtGui.QPalette.Highlight)
            painter.setPen(QtGui.QPen(color, 0))
            painter.drawRect(self.boundingRect())
        elif not self.is_valid:
            painter.setPen(QtGui.QPen(CurrentTheme.PARAM_INVALID_COLOR, 0))
            painter.drawRect(self.boundingRect())
        else:
            color = QtGui.QApplication.palette().color(QtGui.QPalette.Dark)
            painter.setPen(QtGui.QPen(color, 0))
            painter.drawRect(self.boundingRect())
        return result
Parse the script command line inputs
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/modules/constant_configuration.py/QGraphicsLineEdit.paint--crossover with--dataset/ETHPy150Open saltstack/salt/tests/eventlisten.py/parse