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

Method lookup

Lib/tkinter/ttk.py:387–396  ·  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

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

Callers 15

__init__Method · 0.45
collapse_rfc2231_valueFunction · 0.45
paramsMethod · 0.45
setUpMethod · 0.45
test_only_one_bomMethod · 0.45
test_only_one_bomMethod · 0.45
test_lookup_issue1813Method · 0.45
test_copyMethod · 0.45
test_deepcopyMethod · 0.45
test_pickleMethod · 0.45
test_basicsMethod · 0.45

Calls 2

joinMethod · 0.45
callMethod · 0.45

Tested by 15

test_only_one_bomMethod · 0.36
test_only_one_bomMethod · 0.36
test_lookup_issue1813Method · 0.36
test_copyMethod · 0.36
test_deepcopyMethod · 0.36
test_pickleMethod · 0.36
test_basicsMethod · 0.36
test_aliasesMethod · 0.36
test_mbcs_code_pageMethod · 0.36
test_writelinesMethod · 0.36
test_writeMethod · 0.36