Am .12.2015, 20:47 Uhr, schrieb <
derksen...@gmail.com>:
> just started to play with openpyxl. I'm trying to get the cell colors
> for a
> sheet i'm parsing. I'm fine on the indexed colors, however i struggle to
> translate the themed colors to an RGB value.
Struggle you will. This is from the specification:
"""
A zero-based index into the <clrScheme> collection (§20.1.6.2),
referencing a particular <sysClr> or <srgbClr> value expressed in the
Theme part. The possible values for this attribute are defined by the W3C
XML Schema unsignedInt datatype.
"""
Internally openpyxl doesn't use any themes but it does come with a default
one that always gets written. See openpyxl/writer/theme.py for detail. The
workaround suggested by Adam back in 2013 for working with a particular
scheme should basically still work.
Hope that helps.
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel:
+49-211-600-3657
Mobile:
+49-178-782-6226