MCPcopy Index your code
hub / github.com/python-openxml/python-docx / gutter

Method gutter

src/docx/oxml/section.py:232–239  ·  view source on GitHub ↗

The value of the ``w:gutter`` attribute in the `` `` child element, as a |Length| object, or |None| if either the element or the attribute is not present.

(self)

Source from the content-addressed store, hash-verified

230
231 @property
232 def gutter(self) -> Length | None:
233 """The value of the ``w:gutter`` attribute in the ``<w:pgMar>`` child element,
234 as a |Length| object, or |None| if either the element or the attribute is not
235 present."""
236 pgMar = self.pgMar
237 if pgMar is None:
238 return None
239 return pgMar.gutter
240
241 @gutter.setter
242 def gutter(self, value: int | Length | None):

Callers

nothing calls this directly

Calls 1

LengthClass · 0.90

Tested by

no test coverage detected