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

Method add_sub_category

src/pptx/chart/data.py:522–529  ·  view source on GitHub ↗

Return a newly created |data.Category| object having *label* and appended to the end of the sub-category sequence for this category.

(self, label)

Source from the content-addressed store, hash-verified

520 self._sub_categories = []
521
522 def add_sub_category(self, label):
523 """
524 Return a newly created |data.Category| object having *label* and
525 appended to the end of the sub-category sequence for this category.
526 """
527 category = Category(label, self)
528 self._sub_categories.append(category)
529 return category
530
531 @property
532 def depth(self):

Calls 2

CategoryClass · 0.70
appendMethod · 0.45