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

Class Sizegrip

PySimpleGUI/PySimpleGUI.py:7216–7242  ·  view source on GitHub ↗

Sizegrip element will be added to the bottom right corner of your window. It should be placed on the last row of your window along with any other elements on that row. The color will match the theme's background color.

Source from the content-addressed store, hash-verified

7214# Sizegrip #
7215# ---------------------------------------------------------------------- #
7216class Sizegrip(Element):
7217 """
7218 Sizegrip element will be added to the bottom right corner of your window.
7219 It should be placed on the last row of your window along with any other elements on that row.
7220 The color will match the theme's background color.
7221 """
7222
7223 def __init__(self, background_color=None, pad=None, p=(0, 0), key=None, k=None):
7224 """
7225 Sizegrip Element
7226 :param background_color: color to use for the background of the grip
7227 :type background_color: str
7228 :param pad: Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int)
7229 :type pad: (int, int) or ((int, int),(int,int)) or (int,(int,int)) or ((int, int),int) | int
7230 :param p: Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used
7231 :type p: (int, int) or ((int, int),(int,int)) or (int,(int,int)) or ((int, int),int) | int
7232 :param key: Value that uniquely identifies this element from all other elements. Used when Finding an element or in return values. Must be unique to the window
7233 :type key: str | int | tuple | object
7234 :param k: Same as the Key. You can use either k or key. Which ever is set will be used.
7235 :type k: str | int | tuple | object
7236 """
7237
7238 bg = background_color if background_color is not None else theme_background_color()
7239 pad = pad if pad is not None else p
7240 key = key if key is not None else k
7241
7242 super().__init__(ELEM_TYPE_SIZEGRIP, background_color=bg, key=key, pad=pad)
7243
7244
7245SGrip = Sizegrip

Callers 4

__init__Method · 0.85
popup_scrolledFunction · 0.85
main_sdk_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected