(wxPython 2.8.9.1 under Ubuntu Jaunty)
No, that is handled by the window manager, not the application.
--
Robin Dunn
Software Craftsman
http://wxPython.org
I see, but AFAIK the application could _ask_ the WM to handle a window
as sticky, and surely e.g. GKrellm does it (it has a "set sticky
state" option).. Moreover, I see that PyGTK has a stick() method
(http://www.pygtk.org/docs/pygtk/class-gtkwindow.html#method-
gtkwindow--stick), so maybe wxPython could do it too..
I'll check for an alternative way, thanks for your time :)
For the record I came up with the following:
import gtk
def set_sticky(frame):
gdkwin = gtk.gdk.window_lookup(frame.GetHandle())
win = gdkwin.get_user_data() #
http://library.gnome.org/devel/gdk/unstable/gdk-Windows.html#gdk-window-get-user-data
while not isinstance(win, gtk.Window):
win = win.get_parent()
win.stick()
Maybe there's a quicker way, but it works nicely (at least on Xubuntu
9.04)
--
Steven Sproat, BSc
http://www.basicrpg.com/
Well yes it's Linux only.. Anyway thanks for the hint :)