[pygtk] Taking action when a window is raised
Graham Ashton
gashton at cmedltd.com
Thu Mar 9 03:10:36 WST 2006
[I'm re-posting this from http://www.gnomedev.com/viewtopic.php?t=36]
Hi there. I'm trying to work out how to run a callback when my
application's main window is given top level focus. I'm using PyGTK,
but I think my question is really a general GTK+ one.
How are you supposed to do it? I can't find a signal on a GtkWindow
that I could connect to, which has left me stumped. I'm not sure how
else it would work.
I know it's possible (the wonderful gossip
[http://live.gnome.org/Gossip] does it), but a cursory scan of the
source didn't reveal anything obvious (to me).
Any pointers?
Cheers,
Graham
More information about the pygtk
mailing list