[pygtk] event handling
Pascal DUCHATELLE
pduchatelle at yahoo.fr
Sun Sep 3 14:37:13 WST 2006
Hello,
in the helloworld.py file coming with the pyGTK demo package there is a event handler looking like this:
self.button.connect("clicked", self.hello, None)
In another file I found like this:
dic = {"on_mainWindow_destroy" : gtk.main_quit,
"on_hello_key_press_event" : self.hellorecompile}
followed by this:
self.wTree.signal_autoconnect(dic)
Is there a way to use the second solution but also pass an argument like in the first one ?
Thank you
Pascal
---------------------------------
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060903/ba5f18cf/attachment.htm
More information about the pygtk
mailing list