有没有办法用wxpython设置框架/窗口的“粘性”位?
(Ubuntu Jaunty下的Wxpython 2.8.9.1)
我想到的是:
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()