@staticmethod
def button_state_change(but, state, style_settings):
    """
		Used for setting TTK buttons as selected or unselected.

		str 'toggle' to toggle from the current state
		1 to set default to active 		- Pressed state
		0 to set default state to normal

		To see how to create the style of the selected state see below.
		Or see button_styling.py used by demo.py, get from github

		tkinter.ttk.Style().theme_create("toggle", "default", settings={
		"ToggleButton": {
			"configure": {"width": 10, "anchor": "center"},
			"layout": [
				("ToggleButton.button", {"children":
					[("ToggleButton.focus", {"children":
						[("ToggleButton.padding", {"children":
				[("ToggleButton.label", {"side": "left", "expand": 1})]
						})]
					})]
				})
			]
		}
		"ToggleButton.button": {"element create":
			("image", 'button-n',
		("pressed", 'button-p'), ("active","!alternate", 'button-h'),
				("alternate", "button-s"),#THIS IS THE MAGIC tbutton-p
				{"border": [4, 10], "padding": 4, "sticky":"ewns"}
			)}
		})

		style.theme_use('toggle')
		"""
    if state == 'toggle':
        if str(but.cget('default')) == 'normal':
            but.config(default='active')
        else:
            but.config(default='normal')
    elif state:
        but.config(default='active')
    else:
        but.config(default='normal')
