Lines Matching refs:state

11 maintaining the widget state and invoking callbacks, all aspects
60 # is another sequence containing a state (or several) and a value
66 for *state, val in items:
67 if len(state) == 1:
69 # format it to Tcl code to denote the "normal" state
70 state = state[0] or ''
73 state = ' '.join(state) # raise TypeError if not str
74 opt_val.append(state)
231 for state, val in zip(it, it):
232 if hasattr(state, 'typename'): # this is a Tcl object
233 state = str(state).split()
234 elif isinstance(state, str):
235 state = state.split()
236 elif not isinstance(state, (tuple, list)):
237 state = (state,)
240 result.append((*state, val))
380 def lookup(self, style, option, state=None, default=None):
383 If state is specified it is expected to be a sequence of one
386 state = ' '.join(state) if state else ''
389 state, default)
539 """Test the widget's state.
541 If callback is not specified, returns True if the widget state
543 then it will be invoked with *args, **kw if the widget state
553 def state(self, statespec=None):
554 """Modify or inquire widget state.
556 Widget state is returned if statespec is None, otherwise it is
557 set according to the statespec flags and then a new state spec
563 return self.tk.splitlist(str(self.tk.call(self._w, "state", statespec)))
575 class, compound, cursor, image, state, style, takefocus,
591 """Ttk Checkbutton widget which is either in on- or off-state."""
598 class, compound, cursor, image, state, style, takefocus,
632 exportselection, invalidcommand, justify, show, state,
657 if it succeeds. Sets or clears the invalid state accordingly."""
674 exportselection, justify, height, postcommand, state,
762 class, compound, cursor, image, state, style, takefocus,
790 state, sticky, padding, text, image, compound, underline
1015 class, compound, cursor, image, state, style, takefocus,
1118 class, cursor, state, style, takefocus
1423 """Toggle the selection state of each specified item."""