MCPcopy Create free account
hub / github.com/scanny/python-pptx / CT_GradientStopList

Class CT_GradientStopList

src/pptx/oxml/dml/fill.py:107–136  ·  view source on GitHub ↗

`a:gsLst` custom element class.

Source from the content-addressed store, hash-verified

105
106
107class CT_GradientStopList(BaseOxmlElement):
108 """`a:gsLst` custom element class."""
109
110 gs = OneOrMore("a:gs")
111
112 @classmethod
113 def new_gsLst(cls):
114 """Return newly-created "loose" default stop-list subtree.
115
116 An `a:gsLst` element must have at least two `a:gs` children. These
117 are the default from the PowerPoint built-in "White" template.
118 """
119 return parse_xml(
120 "<a:gsLst %s>\n"
121 ' <a:gs pos="0">\n'
122 ' <a:schemeClr val="accent1">\n'
123 ' <a:tint val="100000"/>\n'
124 ' <a:shade val="100000"/>\n'
125 ' <a:satMod val="130000"/>\n'
126 " </a:schemeClr>\n"
127 " </a:gs>\n"
128 ' <a:gs pos="100000">\n'
129 ' <a:schemeClr val="accent1">\n'
130 ' <a:tint val="50000"/>\n'
131 ' <a:shade val="100000"/>\n'
132 ' <a:satMod val="350000"/>\n'
133 " </a:schemeClr>\n"
134 " </a:gs>\n"
135 "</a:gsLst>\n" % nsdecls("a")
136 )
137
138
139class CT_GroupFillProperties(BaseOxmlElement):

Callers

nothing calls this directly

Calls 1

OneOrMoreClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…