[pygtk] Callbacks
Walter Leibbrandt
walter at translate.org.za
Wed Mar 11 21:53:58 WST 2009
Hi,
It seems that this has been asked before:
http://osdir.com/ml/gnome.gtk+.python/2003-04/msg00089.html
Short answer: no, it doesn't seem like you can. I have, however, found
the handler_block_by_func() and handler_unblock_by_func() methods of
gobject.GObject. Although I haven't tested this yet, it seems from the
docs
(http://library.gnome.org/devel/pygobject/stable/class-gobject.html#method-gobject--handler-block-by-func)
that you can simply pass your handler to it to (un)block it from being
called.
Let me know how/if it works.
HTH,
Peyman wrote:
> I realize that once you call connect() it returns the handle_id. But
> if glade is doing this for me, are the handle id's stored somewhere?
> Surely there has to be a widget.get_handle_id('callback_function')
> method. I can't seem to find anything on this over the net though.
--
Walter Leibbrandt http://translate.org.za/blogs/walter
Software Developer +27 12 460 1095 (w)
Translate.org.za
Recent blogs:
* Firefox-style button with a pop-up menu
http://www.translate.org.za/blogs/walter/en/content/firefox-style-button-pop-menu
* Virtaal's MVCisation
* Things that changed the way I code
More information about the pygtk
mailing list