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.
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 ?