[pygtk] How to get the event list using get_event()
Marcelo Jedi
marcelobarrosalmeida at gmail.com
Sun Aug 26 03:34:59 WST 2007
Hi everybody !
Using glade, it is possible to generate an interface description as a xml
file. Moreover, via libglade, it is possible to perform several operations
with this xml file, like listing all widgets, do signals/callbacks
association and so on.
My problem is: I would like to list all events related to a specific widget,
I mean, to list all events set by user when designing the interface in glade
but without parsing the xml file, just using libglade. Reading
documentation, I discovered that get_event() could do this for me, that is,
get_event() returns a number (a event mask) with all events set by user.
However, I couldn't understand how to use this number for converting the
bits inside mask into event/signals names. I will use this feature to create
automatic signals/callbacks association in my application.
Any tip/code fragment ?
Thanks a lot !
Marcelo Barros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20070825/e43719d8/at=
tachment.htm
More information about the pygtk
mailing list