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

Method add_attribute

lab/cust-elm-classes/gen_oxml_classes.py:37–38  ·  view source on GitHub ↗
(self, name, required=False, default=None)

Source from the content-addressed store, hash-verified

35 self.children.append(ChildDef(self, tag, cardinality))
36
37 def add_attribute(self, name, required=False, default=None):
38 self.attributes.append(AttributeDef(self, name, required, default))
39
40 def add_attributes(self, *names):
41 for name in names:

Callers

nothing calls this directly

Calls 2

AttributeDefClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected