I want to change ttk.Button\'s state according to some internal logic. I create a button and associate a style with it:
cardBtnStyle = ttk.Style() cardBtnSty
The button state is not part of its style. You can use the state() method to modify it:
cardBtn.state(["disabled"]) # Disable the button. cardBtn.state(["!disabled"]) # Enable the button.