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

Function Push

PySimpleGUI/PySimpleGUI.py:9676–9685  ·  view source on GitHub ↗

Acts like a Stretch element found in the Qt port. Used in a Horizontal fashion. Placing one on each side of an element will enter the element. Place one to the left and the element to the right will be right justified. See VStretch for vertical type :param background_color: color

(background_color=None)

Source from the content-addressed store, hash-verified

9674# ---------------------------------------------------------------------- #
9675# This is for source code compatibility with tkinter version. No tkinter equivalent but you can fake it using a Text element that expands in the X direction
9676def Push(background_color=None):
9677 """
9678 Acts like a Stretch element found in the Qt port.
9679 Used in a Horizontal fashion. Placing one on each side of an element will enter the element.
9680 Place one to the left and the element to the right will be right justified. See VStretch for vertical type
9681 :param background_color: color of background may be needed because of how this is implemented
9682 :type background_color: (str)
9683 :return: (Text)
9684 """
9685 return Text(font='_ 1', background_color=background_color, pad=(0, 0), expand_x=True)
9686
9687
9688P = Push

Callers 6

popupFunction · 0.85
popup_scrolledFunction · 0.85
upgrade_PySimpleGUI_guiFunction · 0.85
_create_main_windowFunction · 0.85

Calls 1

TextClass · 0.85

Tested by

no test coverage detected