parameters: (self, statespec, callback=None, *args, **kw)
return_statement: return bool(ret)
docstring: Test the widget's state.
  
          If callback is not specified, returns True if the widget state
          matches statespec and False otherwise. If callback is specified,
          then it will be invoked with *args, **kw if the widget state
          matches statespec. statespec is expected to be a sequence.
docstring_summary: Test the widget's state.
docstring_tokens: Test the widget s state .
function: def instate(self, statespec, callback=None, *args, **kw):
          """Test the widget's state.
  
          If callback is not specified, returns True if the widget state
          matches statespec and False otherwise. If callback is specified,
          then it will be invoked with *args, **kw if the widget state
          matches statespec. statespec is expected to be a sequence."""
          ret = self.tk.call(self._w, "instate", ' '.join(statespec))
          if ret and callback:
              return callback(*args, **kw)
  
          return bool(ret)
function_tokens: def instate ( self , statespec , callback = None , * args , * * kw ) : ret = self . tk . call ( self . _w , "instate" , ' ' . join ( statespec ) ) if ret and callback : return callback ( * args , * * kw ) return bool ( ret )