MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / theme_settings

Method theme_settings

tools/python-3.11.9-amd64/Lib/tkinter/ttk.py:471–480  ·  view source on GitHub ↗

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

(self, themename, settings)

Source from the content-addressed store, hash-verified

469
470
471 def theme_settings(self, themename, settings):
472 """Temporarily sets the current theme to themename, apply specified
473 settings and then restore the previous theme.
474
475 Each key in settings is a style and each value may contain the
476 keys 'configure', 'map', 'layout' and 'element create' and they
477 are expected to have the same format as specified by the methods
478 configure, map, layout and element_create respectively."""
479 script = _script_from_settings(settings)
480 self.tk.call(self._name, "theme", "settings", themename, script)
481
482
483 def theme_names(self):

Callers

nothing calls this directly

Calls 2

_script_from_settingsFunction · 0.85
callMethod · 0.80

Tested by

no test coverage detected