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

Method _get_marX

src/pptx/oxml/table.py:342–346  ·  view source on GitHub ↗

Generalized method to get margin values.

(self, attr_name: str, default: Length)

Source from the content-addressed store, hash-verified

340 return "\n".join([p.text for p in txBody.p_lst])
341
342 def _get_marX(self, attr_name: str, default: Length) -> Length:
343 """Generalized method to get margin values."""
344 if self.tcPr is None:
345 return Emu(default)
346 return Emu(int(self.tcPr.get(attr_name, default)))
347
348 def _new_txBody(self) -> CT_TextBody:
349 return CT_TextBody.new_a_txBody()

Callers 4

marTMethod · 0.95
marRMethod · 0.95
marBMethod · 0.95
marLMethod · 0.95

Calls 2

EmuClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected