Home | History | Annotate | Download | only in ttk

Lines Matching defs:states

1 """Sample demo showing widget states and some font styling."""
4 states = ['active', 'disabled', 'focus', 'pressed', 'selected',
7 for state in states[:]:
8 states.append("!" + state)
11 nostate = states[len(states) // 2:]
30 # a list to hold all the widgets that will have their states changed
49 # keep only the valid states
50 goodstates = [state for state in newstates if state in states]
51 # define a new font size based on amount of states
64 btn = ttk.Button(self, text='Enter states and watch')