結果 : python check if button is pressed