openpyxl.drawing.colors模块¶
- class openpyxl.drawing.colors.ColorChoice(scrgbClr=None, srgbClr=None, hslClr=None, sysClr=None, schemeClr=None, prstClr=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- RGB¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- RGBPercent¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- hslClr¶
值的类型必须小于class“openpyxl.drawing.colors.hslcolor”>
- namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'¶
- prstClr¶
Value must be one of {'orchid', 'ltSalmon', 'ltCyan', 'rosyBrown', 'dkGrey', 'lightGray', 'grey', 'saddleBrown', 'orange', 'chocolate', 'brown', 'dodgerBlue', 'gray', 'burlyWood', 'antiqueWhite', 'moccasin', 'bisque', 'dkBlue', 'medSpringGreen', 'aliceBlue', 'fuchsia', 'navy', 'blue', 'tomato', 'powderBlue', 'dkOliveGreen', 'limeGreen', 'dkMagenta', 'ltSlateGray', 'indianRed', 'mistyRose', 'ltYellow', 'paleGreen', 'darkSlateBlue', 'yellow', 'lightSlateGray', 'azure', 'orangeRed', 'mediumAquamarine', 'violet', 'dkSlateGray', 'forestGreen', 'wheat', 'ltSkyBlue', 'darkSlateGray', 'ltGrey', 'mediumVioletRed', 'darkGreen', 'plum', 'paleTurquoise', 'indigo', 'thistle', 'navajoWhite', 'lightCoral', 'lightYellow', 'coral', 'hotPink', 'paleVioletRed', 'dkTurquoise', 'dkSlateGrey', 'linen', 'ltPink', 'darkOrchid', 'ltGoldenrodYellow', 'ltGreen', 'pink', 'ltBlue', 'dkKhaki', 'royalBlue', 'turquoise', 'lightSteelBlue', 'yellowGreen', 'lavender', 'ltCoral', 'mediumOrchid', 'medAquamarine', 'dkCyan', 'greenYellow', 'slateBlue', 'darkGray', 'lightSkyBlue', 'oliveDrab', 'dimGrey', 'darkMagenta', 'mediumBlue', 'medSlateBlue', 'dkSalmon', 'lightSeaGreen', 'skyBlue', 'ghostWhite', 'tan', 'medVioletRed', 'dkSeaGreen', 'darkSeaGreen', 'peachPuff', 'mediumTurquoise', 'magenta', 'blanchedAlmond', 'aquamarine', 'papayaWhip', 'red', 'goldenrod', 'springGreen', 'steelBlue', 'lemonChiffon', 'darkViolet', 'maroon', 'darkCyan', 'mediumSeaGreen', 'ltSeaGreen', 'ltSlateGrey', 'cyan', 'darkGrey', 'dkSlateBlue', 'lightGreen', 'dkRed', 'gainsboro', 'mintCream', 'dimGray', 'deepPink', 'paleGoldenrod', 'dkGray', 'beige', 'cornflowerBlue', 'dkOrchid', 'lime', 'medOrchid', 'green', 'floralWhite', 'crimson', 'mediumSlateBlue', 'olive', 'salmon', 'darkGoldenrod', 'darkKhaki', 'lightGoldenrodYellow', 'lightPink', 'teal', 'firebrick', 'ivory', 'white', 'silver', 'darkSlateGrey', 'cadetBlue', 'dkGreen', 'dkViolet', 'dkOrange', 'lightSalmon', 'snow', 'lavenderBlush', 'chartreuse', 'darkBlue', 'medBlue', 'honeydew', 'mediumPurple', 'medSeaGreen', 'aqua', 'medPurple', 'darkRed', 'midnightBlue', 'lightGrey', 'oldLace', 'lightCyan', 'slateGrey', 'whiteSmoke', 'dkGoldenrod', 'sandyBrown', 'darkSalmon', 'blueViolet', 'sienna', 'darkOliveGreen', 'seaShell', 'lawnGreen', 'slateGray', 'deepSkyBlue', 'gold', 'darkTurquoise', 'mediumSpringGreen', 'ltGray', 'cornsilk', 'darkOrange', 'peru', 'black', 'seaGreen', 'khaki', 'lightSlateGrey', 'medTurquoise', 'ltSteelBlue', 'lightBlue', 'purple'}
- schemeClr¶
值的类型必须小于class“openpyxl.drawing.colors.schemecolor”>
- scrgbClr¶
值的类型必须小于class“openpyxl.drawing.colors.rgbPercent”>
- srgbClr¶
值的类型必须小于class'str'>
- sysClr¶
值的类型必须小于class“openpyxl.drawing.colors.systemcolor”>
- tagname = 'colorChoice'¶
- class openpyxl.drawing.colors.ColorChoiceDescriptor(*args, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.Typed
对象可以从7种不同的颜色系统中选择。如果传入字符串,则假定为rgbhex。
- allow_none = True¶
- expected_type¶
alias of
openpyxl.drawing.colors.ColorChoice
- class openpyxl.drawing.colors.ColorMapping(bg1='lt1', tx1='dk1', bg2='lt2', tx2='dk2', accent1='accent1', accent2='accent2', accent3='accent3', accent4='accent4', accent5='accent5', accent6='accent6', hlink='hlink', folHlink='folHlink', extLst=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- accent1¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- accent2¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- accent3¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- accent4¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- accent5¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- accent6¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- bg1¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- bg2¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- extLst¶
值的类型必须为<class'openpyxl.descriptors.excel.extensionList'>
- folHlink¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- hlink¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- tagname = 'clrMapOvr'¶
- tx1¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- tx2¶
Value must be one of {'dk1', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'accent4', 'accent6', 'lt2', 'accent5', 'lt1'}
- class openpyxl.drawing.colors.HSLColor(hue=None, sat=None, lum=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- hue¶
值的类型必须小于class“int”>
- lum¶
值的类型必须小于class“float”>
- sat¶
值的类型必须小于class“float”>
- tagname = 'hslClr'¶
- class openpyxl.drawing.colors.RGBPercent(r=None, g=None, b=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- b¶
值的类型必须小于class“float”>
- g¶
值的类型必须小于class“float”>
- r¶
值的类型必须小于class“float”>
- tagname = 'rgbClr'¶
- class openpyxl.drawing.colors.SchemeColor(tint=None, shade=None, comp=None, inv=None, gray=None, alpha=None, alphaOff=None, alphaMod=None, hue=None, hueOff=None, hueMod=None, sat=None, satOff=None, satMod=None, lum=None, lumOff=None, lumMod=None, red=None, redOff=None, redMod=None, green=None, greenOff=None, greenMod=None, blue=None, blueOff=None, blueMod=None, gamma=None, invGamma=None, val=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- alpha¶
值的类型必须小于class“int”>
- alphaMod¶
值的类型必须小于class“int”>
- alphaOff¶
值的类型必须小于class“int”>
- blue¶
值的类型必须小于class“int”>
- blueMod¶
值的类型必须小于class“int”>
- blueOff¶
值的类型必须小于class“int”>
- comp¶
值的类型必须小于class'bool'>
- gamma¶
值的类型必须小于class'bool'>
- gray¶
值的类型必须小于class“int”>
- green¶
值的类型必须小于class“int”>
- greenMod¶
值的类型必须小于class“int”>
- greenOff¶
值的类型必须小于class“int”>
- hue¶
值的类型必须小于class“int”>
- hueMod¶
值的类型必须小于class“int”>
- hueOff¶
值的类型必须小于class“int”>
- inv¶
值的类型必须小于class“int”>
- invGamma¶
值的类型必须小于class'bool'>
- lum¶
值的类型必须小于class“int”>
- lumMod¶
值的类型必须小于class“int”>
- lumOff¶
值的类型必须小于class“int”>
- namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'¶
- red¶
值的类型必须小于class“int”>
- redMod¶
值的类型必须小于class“int”>
- redOff¶
值的类型必须小于class“int”>
- sat¶
值的类型必须小于class“int”>
- satMod¶
值的类型必须小于class“int”>
- satOff¶
值的类型必须小于class“int”>
- shade¶
值的类型必须小于class“int”>
- tagname = 'schemeClr'¶
- tint¶
值的类型必须小于class“int”>
- val¶
Value must be one of {'dk1', 'lt2', 'accent2', 'dk2', 'hlink', 'folHlink', 'accent3', 'accent1', 'bg2', 'accent4', 'tx1', 'accent6', 'bg1', 'tx2', 'accent5', 'phClr', 'lt1'}
- class openpyxl.drawing.colors.SystemColor(val='windowText', lastClr=None, tint=None, shade=None, comp=None, inv=None, gray=None, alpha=None, alphaOff=None, alphaMod=None, hue=None, hueOff=None, hueMod=None, sat=None, satOff=None, satMod=None, lum=None, lumOff=None, lumMod=None, red=None, redOff=None, redMod=None, green=None, greenOff=None, greenMod=None, blue=None, blueOff=None, blueMod=None, gamma=None, invGamma=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- alpha¶
值的类型必须小于class“int”>
- alphaMod¶
值的类型必须小于class“int”>
- alphaOff¶
值的类型必须小于class“int”>
- blue¶
值的类型必须小于class“int”>
- blueMod¶
值的类型必须小于class“int”>
- blueOff¶
值的类型必须小于class“int”>
- comp¶
值的类型必须小于class“openpyxl.drawing.colors.transform”>
- gamma¶
值的类型必须小于class“openpyxl.drawing.colors.transform”>
- gray¶
值的类型必须小于class“openpyxl.drawing.colors.transform”>
- green¶
值的类型必须小于class“int”>
- greenMod¶
值的类型必须小于class“int”>
- greenOff¶
值的类型必须小于class“int”>
- hue¶
值的类型必须小于class“int”>
- hueMod¶
值的类型必须小于class“int”>
- hueOff¶
值的类型必须小于class“int”>
- inv¶
值的类型必须小于class“openpyxl.drawing.colors.transform”>
- invGamma¶
值的类型必须小于class“openpyxl.drawing.colors.transform”>
- lastClr¶
值的类型必须小于class'str'>
- lum¶
值的类型必须小于class“int”>
- lumMod¶
值的类型必须小于class“int”>
- lumOff¶
值的类型必须小于class“int”>
- namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'¶
- red¶
值的类型必须小于class“int”>
- redMod¶
值的类型必须小于class“int”>
- redOff¶
值的类型必须小于class“int”>
- sat¶
值的类型必须小于class“int”>
- satMod¶
值的类型必须小于class“int”>
- satOff¶
值的类型必须小于class“int”>
- shade¶
值的类型必须小于class“int”>
- tagname = 'sysClr'¶
- tint¶
值的类型必须小于class“int”>
- val¶
Value must be one of {'inactiveBorder', 'inactiveCaption', 'infoBk', 'gradientActiveCaption', 'activeBorder', 'infoText', 'btnFace', '3dDkShadow', '3dLight', 'menu', 'windowText', 'background', 'gradientInactiveCaption', 'highlightText', 'btnShadow', 'menuText', 'activeCaption', 'scrollBar', 'highlight', 'appWorkspace', 'menuBar', 'windowFrame', 'menuHighlight', 'btnHighlight', 'btnText', 'grayText', 'hotLight', 'window', 'captionText', 'inactiveCaptionText'}