ColorPalette

Inheritance diagram of ColorPalette
class ColorPalette(dat, int_decoder_dict=None)[source]

Provides the list of taurus colors equivalent to Tango colors.

Import from taurus.core.util.colors as:

from taurus.core.util.colors import ColorPalette
format_SimStates(var='T1')[source]
has(name)[source]
hex(stoq, fmt='%06x', fg=False)[source]

Returns the rgb colors as string of lowercase hexadecimal characters

htmlStyle(htmlTag, stoq)[source]
name(stoq, fg=False)[source]

Returns the name of the color.

number(stoq, fg=False)[source]

Returns the colors as a number, suitable for conversion to hexadecimal as argument to QtGui.QColor.

qtStyleSheet(stoq)[source]
rgb(stoq, fg=False)[source]

Returns a triplet of rgb colors in the range of 0 .. 255.

rgb_pair(stoq)[source]

Returns pair of foreground and background colors.

size()[source]