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

Method notify_height_changed

src/pptx/table.py:122–129  ·  view source on GitHub ↗

Called by a row when its height changes. Triggers the graphic frame to recalculate its total height (as the sum of the row heights).

(self)

Source from the content-addressed store, hash-verified

120 self._tbl.lastRow = value
121
122 def notify_height_changed(self) -> None:
123 """Called by a row when its height changes.
124
125 Triggers the graphic frame to recalculate its total height (as the sum of the row
126 heights).
127 """
128 new_table_height = Emu(sum([row.height for row in self.rows]))
129 self._graphic_frame.height = new_table_height
130
131 def notify_width_changed(self) -> None:
132 """Called by a column when its width changes.

Callers 3

heightMethod · 0.45
notify_height_changedMethod · 0.45

Calls 1

EmuClass · 0.90