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

Method notify_width_changed

src/pptx/table.py:131–138  ·  view source on GitHub ↗

Called by a column when its width changes. Triggers the graphic frame to recalculate its total width (as the sum of the column widths).

(self)

Source from the content-addressed store, hash-verified

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.
133
134 Triggers the graphic frame to recalculate its total width (as the sum of the column
135 widths).
136 """
137 new_table_width = Emu(sum([col.width for col in self.columns]))
138 self._graphic_frame.width = new_table_width
139
140 @property
141 def part(self) -> BaseSlidePart:

Callers 3

widthMethod · 0.45
notify_width_changedMethod · 0.45

Calls 1

EmuClass · 0.90