結果 : how to check if button is clicked in python