Feasability: "disabling" a pushbutton while code is running

Just dont check the state (change) of that particular button then?