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

Class _SolidFill

src/pptx/dml/fill.py:334–348  ·  view source on GitHub ↗

Provides access to fill properties such as color for solid fills.

Source from the content-addressed store, hash-verified

332
333
334class _SolidFill(_Fill):
335 """Provides access to fill properties such as color for solid fills."""
336
337 def __init__(self, solidFill):
338 super(_SolidFill, self).__init__()
339 self._solidFill = solidFill
340
341 @lazyproperty
342 def fore_color(self):
343 """Return |ColorFormat| object controlling fill color."""
344 return ColorFormat.from_colorchoice_parent(self._solidFill)
345
346 @property
347 def type(self):
348 return MSO_FILL.SOLID
349
350
351class _GradientStops(Sequence):

Callers 3

fill_type_fixtureMethod · 0.90
fore_color_fixtureMethod · 0.90
solidMethod · 0.85

Calls

no outgoing calls

Tested by 2

fill_type_fixtureMethod · 0.72
fore_color_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…