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

Method from_fill_parent

src/pptx/dml/fill.py:39–48  ·  view source on GitHub ↗

Return a |FillFormat| instance initialized to the settings contained in *eg_fillProperties_parent*, which must be an element having EG_FillProperties in its child element sequence in the XML schema.

(cls, eg_fillProperties_parent: BaseOxmlElement)

Source from the content-addressed store, hash-verified

37
38 @classmethod
39 def from_fill_parent(cls, eg_fillProperties_parent: BaseOxmlElement) -> FillFormat:
40 """
41 Return a |FillFormat| instance initialized to the settings contained
42 in *eg_fillProperties_parent*, which must be an element having
43 EG_FillProperties in its child element sequence in the XML schema.
44 """
45 fill_elm = eg_fillProperties_parent.eg_fillProperties
46 fill = _Fill(fill_elm)
47 fill_format = cls(eg_fillProperties_parent, fill)
48 return fill_format
49
50 @property
51 def back_color(self):

Callers 10

fillMethod · 0.80
fillMethod · 0.80
fillMethod · 0.80
fillMethod · 0.80
fillMethod · 0.80
fillMethod · 0.80
background_fixtureMethod · 0.80
gradient_fixtureMethod · 0.80
patterned_fixtureMethod · 0.80
solid_fixtureMethod · 0.80

Calls 1

_FillClass · 0.85

Tested by 4

background_fixtureMethod · 0.64
gradient_fixtureMethod · 0.64
patterned_fixtureMethod · 0.64
solid_fixtureMethod · 0.64