MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / _change_ttk_theme

Function _change_ttk_theme

PySimpleGUI/PySimpleGUI.py:15447–15457  ·  view source on GitHub ↗
(style, theme_name)

Source from the content-addressed store, hash-verified

15445
15446
15447def _change_ttk_theme(style, theme_name):
15448 global ttk_theme_in_use
15449 if theme_name not in style.theme_names():
15450 _error_popup_with_traceback('You are trying to use TTK theme "{}"'.format(theme_name),
15451 'This is not legal for your system',
15452 'The valid themes to choose from are: {}'.format(', '.join(style.theme_names())))
15453 return False
15454
15455 style.theme_use(theme_name)
15456 ttk_theme_in_use = theme_name
15457 return True
15458
15459
15460def _make_ttk_style_name(base_style, element, primary_style=False):

Callers 4

__init__Method · 0.85
_make_ttk_scrollbarFunction · 0.85
PackFormIntoFrameFunction · 0.85

Calls 1

Tested by

no test coverage detected