(style, theme_name)
| 15445 | |
| 15446 | |
| 15447 | def _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 | |
| 15460 | def _make_ttk_style_name(base_style, element, primary_style=False): |
no test coverage detected