button question

Hi,

now I have a question of button.I have written my code in a c file.I want to
run the code when i press the button.What fuction of the phton lib can i
use??And how to do??Who can help me.

Thanks a lot!

PtAddCallback( … )