code: def _get_color(self, color):
          
          qcolor = QtGui.QColor()
          qcolor.setRgb(int(color[:2], base=16),
                        int(color[2:4], base=16),
                        int(color[4:6], base=16))
          return qcolor
docs: Returns a QColor built from a Pygments color string.