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

Method layout

PySimpleGUI/PySimpleGUI.py:7654–7675  ·  view source on GitHub ↗

Can use like the Window.Layout method, but it's better to use the layout parameter when creating :param rows: The rows of Elements :type rows: List[List[Element]] :return: Used for chaining :rtype: (Frame)

(self, rows)

Source from the content-addressed store, hash-verified

7652 self.Rows.append(CurrentRow)
7653
7654 def layout(self, rows):
7655 """
7656 Can use like the Window.Layout method, but it's better to use the layout parameter when creating
7657
7658 :param rows: The rows of Elements
7659 :type rows: List[List[Element]]
7660 :return: Used for chaining
7661 :rtype: (Frame)
7662 """
7663 for row in rows:
7664 try:
7665 iter(row)
7666 except TypeError:
7667 PopupError('Error creating Tab layout',
7668 'Your row is not an iterable (e.g. a list)',
7669 'Instead of a list, the type found was {}'.format(type(row)),
7670 'The offensive row = ',
7671 row,
7672 'This item will be stripped from your layout', keep_on_top=True, image=_random_error_emoji())
7673 continue
7674 self.AddRow(*row)
7675 return self
7676
7677 def _GetElementAtLocation(self, location):
7678 """

Callers

nothing calls this directly

Calls 1

_random_error_emojiFunction · 0.85

Tested by

no test coverage detected