MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / contents_changed

Method contents_changed

PySimpleGUI/PySimpleGUI.py:8410–8416  ·  view source on GitHub ↗

When a scrollable column has part of its layout changed by making elements visible or invisible or the layout is extended for the Column, then this method needs to be called so that the new scroll area is computed to match the new contents.

(self)

Source from the content-addressed store, hash-verified

8408 self._visible = visible
8409
8410 def contents_changed(self):
8411 """
8412 When a scrollable column has part of its layout changed by making elements visible or invisible or the
8413 layout is extended for the Column, then this method needs to be called so that the new scroll area
8414 is computed to match the new contents.
8415 """
8416 self.TKColFrame.canvas.config(scrollregion=self.TKColFrame.canvas.bbox('all'))
8417
8418 AddRow = add_row
8419 Layout = layout

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected