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

Class _Row

src/pptx/table.py:400–424  ·  view source on GitHub ↗

Table row

Source from the content-addressed store, hash-verified

398
399
400class _Row(Subshape):
401 """Table row"""
402
403 def __init__(self, tr: CT_TableRow, parent: _RowCollection):
404 super(_Row, self).__init__(parent)
405 self._parent = parent
406 self._tr = tr
407
408 @property
409 def cells(self):
410 """Read-only reference to collection of cells in row.
411
412 An individual cell is referenced using list notation, e.g. `cell = row.cells[0]`.
413 """
414 return _CellCollection(self._tr, self)
415
416 @property
417 def height(self) -> Length:
418 """Height of row in EMU."""
419 return self._tr.h
420
421 @height.setter
422 def height(self, height: Length):
423 self._tr.h = height
424 self._parent.notify_height_changed()
425
426
427class _CellCollection(Subshape):

Callers 4

cells_fixtureMethod · 0.90
height_get_fixtureMethod · 0.90
height_set_fixtureMethod · 0.90
__getitem__Method · 0.85

Calls

no outgoing calls

Tested by 3

cells_fixtureMethod · 0.72
height_get_fixtureMethod · 0.72
height_set_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…