openpyxl.styles.colors module

class openpyxl.styles.colors.Color(rgb='00000000', indexed=None, auto=None, theme=None, tint=0.0, index=None, type='rgb')[source]

Bases: Serialisable

Named colors for use in styles.

auto

Values must be of type <class ‘bool’>

property index
indexed

Values must be of type <class ‘int’>

rgb

Values must be of type <class ‘str’>

tagname = 'color'
theme

Values must be of type <class ‘int’>

tint

Values must be of type <class ‘float’>

type

Values must be of type <class ‘str’>

property value
class openpyxl.styles.colors.ColorDescriptor(*args, **kw)[source]

Bases: Typed

expected_type

alias of Color

class openpyxl.styles.colors.ColorList(indexedColors=(), mruColors=())[source]

Bases: Serialisable

property index
indexedColors

Wrap a sequence in an containing object

mruColors

Wrap a sequence in an containing object

tagname = 'colors'
class openpyxl.styles.colors.RGB(*args, **kw)[source]

Bases: Typed

Descriptor for aRGB values If not supplied alpha is 00

expected_type

alias of str

class openpyxl.styles.colors.RgbColor(rgb=None)[source]

Bases: Serialisable

rgb

Values must be of type <class ‘str’>

tagname = 'rgbColor'