Home
last modified time | relevance | path

Searched refs:statespec (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/lib-tk/test/test_ttk/
Dtest_functions.py342 statespec = MockStateSpec(*states_even)
343 test_it(statespec, 'val', 'val', states_even)
344 test_it(statespec, MockTclObj('val'), 'val', states_even)
347 statespec = MockStateSpec(*states_odd)
348 test_it(statespec, 'val', 'val', states_odd)
/external/python/cpython2/Lib/lib-tk/
Dttk.py566 def instate(self, statespec, callback=None, *args, **kw): argument
574 self.tk.call(self._w, "instate", ' '.join(statespec)))
581 def state(self, statespec=None): argument
588 if statespec is not None:
589 statespec = ' '.join(statespec)
591 return self.tk.splitlist(str(self.tk.call(self._w, "state", statespec)))
/external/python/cpython2/Doc/library/
Dttk.rst180 | | rest of the list is a sequence of statespec/value pairs as|
268 .. method:: instate(statespec, callback=None, *args, **kw)
271 if the widget state matches *statespec* and ``False`` otherwise. If callback
273 *statespec*.
276 .. method:: state([statespec=None])
278 Modify or read widget state. If *statespec* is specified, sets the
279 widget state accordingly and returns a new *statespec* indicating
280 which flags were changed. If *statespec* is not specified, returns
283 *statespec* will usually be a list or a tuple.
1196 something else of your preference. A statespec is a compound of one
[all …]