MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / theme_background_color

Function theme_background_color

PySimpleGUI/PySimpleGUI.py:19671–19683  ·  view source on GitHub ↗

Sets/Returns the background color currently in use Used for Windows and containers (Column, Frame, Tab) and tables :param color: new background color to use (optional) :type color: (str) :return: color string of the background color currently in use :rtype: (str

(color=None)

Source from the content-addressed store, hash-verified

19669
19670
19671def theme_background_color(color=None):
19672 """
19673 Sets/Returns the background color currently in use
19674 Used for Windows and containers (Column, Frame, Tab) and tables
19675
19676 :param color: new background color to use (optional)
19677 :type color: (str)
19678 :return: color string of the background color currently in use
19679 :rtype: (str)
19680 """
19681 if color is not None:
19682 set_options(background_color=color)
19683 return DEFAULT_BACKGROUND_COLOR
19684
19685
19686# This "constant" is misleading but rather than remove and break programs, will try this method instead

Callers 12

__init__Method · 0.85
updateMethod · 0.85
__init__Method · 0.85
updateMethod · 0.85
__init__Method · 0.85
themeFunction · 0.85
PySimpleGUI.pyFile · 0.85
popup_get_dateFunction · 0.85
_create_main_windowFunction · 0.85
mainFunction · 0.85

Calls 1

set_optionsFunction · 0.85

Tested by

no test coverage detected