MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / vbottom

Function vbottom

PySimpleGUI/PySimpleGUI.py:13237–13256  ·  view source on GitHub ↗

Align an element or a row of elements to the bottom of the row that contains it :param elem_or_row: the element or row of elements :type elem_or_row: Element | List[Element] | Tuple[Element] :param expand_x: If True/False the value will be passed to the Column El

(elem_or_row, expand_x=None, expand_y=None, background_color=None)

Source from the content-addressed store, hash-verified

13235
13236
13237def vbottom(elem_or_row, expand_x=None, expand_y=None, background_color=None):
13238 """
13239 Align an element or a row of elements to the bottom of the row that contains it
13240
13241 :param elem_or_row: the element or row of elements
13242 :type elem_or_row: Element | List[Element] | Tuple[Element]
13243 :param expand_x: If True/False the value will be passed to the Column Elements used to make this feature
13244 :type expand_x: (bool)
13245 :param expand_y: If True/False the value will be passed to the Column Elements used to make this feature
13246 :type expand_y: (bool)
13247 :param background_color: Background color for container that is used by vcenter to do the alignment
13248 :type background_color: str | None
13249 :return: A column element containing the provided element aligned to the bottom or list of elements (a row)
13250 :rtype: Column | List[Column]
13251 """
13252
13253 if isinstance(elem_or_row, list) or isinstance(elem_or_row, tuple):
13254 return [Column([[e]], pad=(0, 0), vertical_alignment='bottom', expand_x=expand_x, expand_y=expand_y, background_color=background_color) for e in elem_or_row]
13255
13256 return Column([[elem_or_row]], pad=(0, 0), vertical_alignment='bottom', expand_x=expand_x, expand_y=expand_y, background_color=background_color)
13257
13258
13259def Titlebar(title='', icon=None, text_color=None, background_color=None, font=None, key=None, k=None):

Callers

nothing calls this directly

Calls 1

ColumnClass · 0.85

Tested by

no test coverage detected