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

Method state

Lib/tkinter/ttk.py:560–570  ·  view source on GitHub ↗

Modify or inquire widget state. Widget state is returned if statespec is None, otherwise it is set according to the statespec flags and then a new state spec is returned indicating which flags were changed. statespec is expected to be a sequence.

(self, statespec=None)

Source from the content-addressed store, hash-verified

558
559
560 def state(self, statespec=None):
561 """Modify or inquire widget state.
562
563 Widget state is returned if statespec is None, otherwise it is
564 set according to the statespec flags and then a new state spec
565 is returned indicating which flags were changed. statespec is
566 expected to be a sequence."""
567 if statespec is not None:
568 statespec = ' '.join(statespec)
569
570 return self.tk.splitlist(str(self.tk.call(self._w, "state", statespec)))
571
572
573class Button(Widget):

Callers 15

load_theme_cfgMethod · 0.45
set_theme_typeMethod · 0.45
set_highlight_targetMethod · 0.45
delete_customMethod · 0.45
load_key_cfgMethod · 0.45
set_keys_typeMethod · 0.45
delete_custom_keysMethod · 0.45
set_add_delete_stateMethod · 0.45
maybesaveMethod · 0.45
test_load_theme_cfgMethod · 0.45
test_theme_sourceMethod · 0.45

Calls 4

strFunction · 0.85
splitlistMethod · 0.80
joinMethod · 0.45
callMethod · 0.45

Tested by 13

test_load_theme_cfgMethod · 0.36
test_theme_sourceMethod · 0.36
test_set_theme_typeMethod · 0.36
test_delete_customMethod · 0.36
test_load_key_cfgMethod · 0.36
test_keyset_sourceMethod · 0.36
test_set_keys_typeMethod · 0.36
test_get_new_keysMethod · 0.36