MCPcopy Index your code
hub / github.com/python/cpython / theme_settings

Method theme_settings

Lib/tkinter/ttk.py:478–487  ·  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 same

(self, themename, settings)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

_script_from_settingsFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected