pygtk
Skip Montanaro
skip at pobox.com
Mon Nov 19 09:28:36 EST 2001
Sylvain> this is a little off topic, but does anybody knows how to give
Sylvain> the focus to a particular window using pygtk ? (I wish the
Sylvain> designed window to take focus and to come to the foreground if
Sylvain> another window hided it).
w.grab_focus() does the trick using the new Gtk 2.0 API. I haven't used the
earlier API, but I assume it's similar. To raise a widget, get its
GdkWindow and call raise_():
w.window.raise_()
--
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)
More information about the Python-list
mailing list