How run function after clicking botton in plugin

If someone has this error too - Read here link text

Alas, I was faced with another problem. My project has crashed. Any help would be appreciated!