how to use the button in python