MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / theme

Function theme

PySimpleGUI/PySimpleGUI.py:19653–19668  ·  view source on GitHub ↗

Sets / Gets the current Theme. If none is specified then returns the current theme. This call replaces the ChangeLookAndFeel / change_look_and_feel call which only sets the theme. :param new_theme: the new theme name to use :type new_theme: (str) :return: the current

(new_theme=None)

Source from the content-addressed store, hash-verified

19651
19652
19653def theme(new_theme=None):
19654 """
19655 Sets / Gets the current Theme. If none is specified then returns the current theme.
19656 This call replaces the ChangeLookAndFeel / change_look_and_feel call which only sets the theme.
19657
19658 :param new_theme: the new theme name to use
19659 :type new_theme: (str)
19660 :return: the currently selected theme
19661 :rtype: (str)
19662 """
19663 global TRANSPARENT_BUTTON
19664
19665 if new_theme is not None:
19666 change_look_and_feel(new_theme)
19667 TRANSPARENT_BUTTON = (theme_background_color(), theme_background_color())
19668 return CURRENT_LOOK_AND_FEEL
19669
19670
19671def theme_background_color(color=None):

Callers 14

theme_globalFunction · 0.85
theme_previewerFunction · 0.85
theme_previewer_swatchesFunction · 0.85
main_mac_feature_controlFunction · 0.85
_display_all_varsMethod · 0.85
_choose_auto_watchesMethod · 0.85
_main_switch_themeFunction · 0.85
mainFunction · 0.85

Calls 2

change_look_and_feelFunction · 0.85
theme_background_colorFunction · 0.85

Tested by

no test coverage detected