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

Method layout

PySimpleGUI/PySimpleGUI.py:8327–8349  ·  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: (Column)

(self, rows)

Source from the content-addressed store, hash-verified

8325 self.Rows.append(CurrentRow)
8326
8327 def layout(self, rows):
8328 """
8329 Can use like the Window.Layout method, but it's better to use the layout parameter when creating
8330
8331 :param rows: The rows of Elements
8332 :type rows: List[List[Element]]
8333 :return: Used for chaining
8334 :rtype: (Column)
8335 """
8336
8337 for row in rows:
8338 try:
8339 iter(row)
8340 except TypeError:
8341 PopupError('Error creating Column layout',
8342 'Your row is not an iterable (e.g. a list)',
8343 'Instead of a list, the type found was {}'.format(type(row)),
8344 'The offensive row = ',
8345 row,
8346 'This item will be stripped from your layout', keep_on_top=True, image=_random_error_emoji())
8347 continue
8348 self.AddRow(*row)
8349 return self
8350
8351 def _GetElementAtLocation(self, location):
8352 """

Callers

nothing calls this directly

Calls 1

_random_error_emojiFunction · 0.85

Tested by

no test coverage detected