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

Method remove_tx_rich

src/pptx/oxml/chart/datalabel.py:107–115  ·  view source on GitHub ↗

Remove any `c:tx[c:rich]` child, or do nothing if not present.

(self)

Source from the content-addressed store, hash-verified

105 )
106
107 def remove_tx_rich(self):
108 """
109 Remove any `c:tx[c:rich]` child, or do nothing if not present.
110 """
111 matches = self.xpath("c:tx[c:rich]")
112 if not matches:
113 return
114 tx = matches[0]
115 self.remove(tx)
116
117 def _new_txPr(self):
118 return CT_TextBody.new_txPr()

Callers 1

_remove_tx_richMethod · 0.80

Calls 2

removeMethod · 0.80
xpathMethod · 0.45

Tested by

no test coverage detected