Run function when button is pressed

I have a main program running in the background, however I would like to execute a certain function when I press the button.

Answers


What do you mean by "button" ?

Is it your python application button (based on wx GUI or QT GUI?) or do you mean a keyboard button ?

Best regards


Need Your Help

KineticJS very slow on iPad 2

ios performance animation mobile kineticjs

I just reimplemented a component of a music app I'm working on to use KineticJS instead of my prototype GUI done all with DOM elements and some JQuery animations. At first I was happy to see a mode...

How to take that data from api and write a function

ruby json

Okay, it's been many days. I have been going back and forth with this api, and would like to get the following results.