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

Method solid

src/pptx/dml/fill.py:148–156  ·  view source on GitHub ↗

Sets the fill type to solid, i.e. a solid color. Note that calling this method does not set a color or by itself cause the shape to appear with a solid color fill; rather it enables subsequent assignments to properties like fore_color to set the color.

(self)

Source from the content-addressed store, hash-verified

146 self._fill = _PattFill(pattFill)
147
148 def solid(self):
149 """
150 Sets the fill type to solid, i.e. a solid color. Note that calling
151 this method does not set a color or by itself cause the shape to
152 appear with a solid color fill; rather it enables subsequent
153 assignments to properties like fore_color to set the color.
154 """
155 solidFill = self._xPr.get_or_change_to_solidFill()
156 self._fill = _SolidFill(solidFill)
157
158 @property
159 def type(self) -> MSO_FILL_TYPE:

Callers 4

when_I_call_fill_solidFunction · 0.80
colorMethod · 0.80
colorMethod · 0.80

Calls 1

_SolidFillClass · 0.85

Tested by 1