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

Method set_spcPct

src/pptx/oxml/text.py:589–596  ·  view source on GitHub ↗

Set spacing to `value` lines, e.g. 1.75 lines. A ./a:spcPts child is removed if present.

(self, value: float)

Source from the content-addressed store, hash-verified

587 )
588
589 def set_spcPct(self, value: float):
590 """Set spacing to `value` lines, e.g. 1.75 lines.
591
592 A ./a:spcPts child is removed if present.
593 """
594 self._remove_spcPts()
595 spcPct = self.get_or_add_spcPct()
596 spcPct.val = value
597
598 def set_spcPts(self, value: Length):
599 """Set spacing to `value` points. A ./a:spcPct child is removed if present."""

Callers 1

line_spacingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected