結果 : check if button pressed python