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