Identifying button pressed

Satyajeet Singh satyam.satyajeet at gmail.com
Mon Jun 25 00:26:07 EDT 2007


 Hi All,
Am a newbie to GUI in python and is currently working on building a
calculator with the help of python and glade. Now I want that the function
which handles the pressing event of a numeric key is same for all the 10
buttons(0 to 9). But unfortunately I dont know how to recognize the button
pressed so that I can get its label by get_label method and can do the work
pretty easily. Even if you have a different approach idea please do tell me.

Thanks in advance.

-- 
Satyajeet Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070625/43a8cf88/attachment.html>


More information about the Python-list mailing list