

def state(self, statespec=None):
    'Modify or inquire widget state.\n\n        Widget state is returned if statespec is None, otherwise it is\n        set according to the statespec flags and then a new state spec\n        is returned indicating which flags were changed. statespec is\n        expected to be a sequence.'
    if (statespec is not None):
        statespec = ' '.join(statespec)
    return self.tk.splitlist(str(self.tk.call(self._w, 'state', statespec)))

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