MCPcopy Index your code
hub / github.com/RustPython/RustPython / tk_setPalette

Method tk_setPalette

Lib/tkinter/__init__.py:716–728  ·  view source on GitHub ↗

Set a new color scheme for all widget elements. A single color as argument will cause that all colors of Tk widget elements are derived from this. Alternatively several keyword parameters and its associated colors can be given. The following keywords are valid:

(self, *args, **kw)

Source from the content-addressed store, hash-verified

714 self.tk.call('tk_bisque')
715
716 def tk_setPalette(self, *args, **kw):
717 """Set a new color scheme for all widget elements.
718
719 A single color as argument will cause that all colors of Tk
720 widget elements are derived from this.
721 Alternatively several keyword parameters and its associated
722 colors can be given. The following keywords are valid:
723 activeBackground, foreground, selectColor,
724 activeForeground, highlightBackground, selectBackground,
725 background, highlightColor, selectForeground,
726 disabledForeground, insertBackground, troughColor."""
727 self.tk.call(('tk_setPalette',)
728 + _flatten(args) + _flatten(list(kw.items())))
729
730 def wait_variable(self, name='PY_VAR'):
731 """Wait until the variable is modified.

Callers

nothing calls this directly

Calls 4

listClass · 0.85
_flattenFunction · 0.70
callMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected