

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

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py Widget.instate/original