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

Method layout

PySimpleGUI/PySimpleGUI.py:7396–7418  ·  view source on GitHub ↗

Not user callable. Use layout parameter instead. Creates the layout using the supplied rows of Elements :param rows: List[List[Element]] The list of rows :type rows: List[List[Element]] :return: (Tab) used for chaining :rtype:

(self, rows)

Source from the content-addressed store, hash-verified

7394 self.Rows.append(CurrentRow)
7395
7396 def layout(self, rows):
7397 """
7398 Not user callable. Use layout parameter instead. Creates the layout using the supplied rows of Elements
7399
7400 :param rows: List[List[Element]] The list of rows
7401 :type rows: List[List[Element]]
7402 :return: (Tab) used for chaining
7403 :rtype:
7404 """
7405
7406 for row in rows:
7407 try:
7408 iter(row)
7409 except TypeError:
7410 PopupError('Error creating Tab layout',
7411 'Your row is not an iterable (e.g. a list)',
7412 'Instead of a list, the type found was {}'.format(type(row)),
7413 'The offensive row = ',
7414 row,
7415 'This item will be stripped from your layout', keep_on_top=True, image=_random_error_emoji())
7416 continue
7417 self.AddRow(*row)
7418 return self
7419
7420 def update(self, title=None, disabled=None, visible=None):
7421 """

Callers

nothing calls this directly

Calls 1

_random_error_emojiFunction · 0.85

Tested by

no test coverage detected