Skip Montanaro skip at
Mon Nov 19 15:28:36 CET 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_():


Skip Montanaro (skip at -

More information about the Python-list mailing list