Set slider value from python script

touch-bar
slider

#1

I've a number of Touch Bar buttons with Execute Shell Script actions attached running python scripts. Next to it I have a Custom AppleScript Slider widget. I'd lie to alter the value of the slider to particular values when buttons are pressed. Is that possible?

thanks