code: def color(self, key):
          
          if type(key) == int:
              key = self.LoggingMap.get(key, ('NotSet', ''))[0]
          name = nativestring(key).capitalize()
          return self._colorSet.color(name)
docs: Returns the color value for the given key for this console.
          
          :param      key | <unicode>
          
          :return     <QtGui.QColor>