this is not easy

for the first time code GUI programme, i spend a day figure it out. every bind defunciton should have the first param. event and i know it deep in the night. otherwise the button will only work when you run the code ,not when you click on it.