Blur (without focus) window

Quick question: how to blur (not focus) a window in PyGTK without creating or focusing on another window? I can not find (or do not know where to look) a solution for this in the PyGTK documentation ...

+3
source share
1 answer
# Assuming a Gtk.Window named 'win'...
win.set_focus(None)

See the documentation at http://www.pygtk.org/pygtk2reference/class-gtkwindow.html#method-gtkwindow--set-focus for details

If there is no focus, the window focus widget is not set.

0
source

All Articles