Temporarily sets the current theme to themename, apply specified settings and then restore the previous theme. Each key in settings is a style and each value may contain the keys 'configure', 'map', 'layout' and 'element create' and they are expected to have the same
(self, themename, settings)
| 476 | |
| 477 | |
| 478 | def theme_settings(self, themename, settings): |
| 479 | """Temporarily sets the current theme to themename, apply specified |
| 480 | settings and then restore the previous theme. |
| 481 | |
| 482 | Each key in settings is a style and each value may contain the |
| 483 | keys 'configure', 'map', 'layout' and 'element create' and they |
| 484 | are expected to have the same format as specified by the methods |
| 485 | configure, map, layout and element_create respectively.""" |
| 486 | script = _script_from_settings(settings) |
| 487 | self.tk.call(self._name, "theme", "settings", themename, script) |
| 488 | |
| 489 | |
| 490 | def theme_names(self): |
nothing calls this directly
no test coverage detected