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

Method lookup

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

Returns the value specified for option in style. If state is specified it is expected to be a sequence of one or more states. If the default argument is set, it is used as a fallback value in case no specification for option is found.

(self, style, option, state=None, default=None)

Source from the content-addressed store, hash-verified

378
379
380 def lookup(self, style, option, state=None, default=None):
381 """Returns the value specified for option in style.
382
383 If state is specified it is expected to be a sequence of one
384 or more states. If the default argument is set, it is used as
385 a fallback value in case no specification for option is found."""
386 state = ' '.join(state) if state else ''
387
388 return self.tk.call(self._name, "lookup", style, '-%s' % option,
389 state, default)
390
391
392 def layout(self, style, layoutspec=None):

Callers 6

__init__Method · 0.45
test_lookupMethod · 0.45
test_theme_createMethod · 0.45
_class_escapeFunction · 0.45
_escapeFunction · 0.45

Calls 2

callMethod · 0.80
joinMethod · 0.45

Tested by 3

test_lookupMethod · 0.36
test_theme_createMethod · 0.36