简体   繁体   English

GTK:在窗口中添加“桌面”标志

[英]GTK: adding “desktop” flag to window

I'm trying to make a window function as the desktop (the thing that displays the icons) using PyGTK. 我正在尝试使用PyGTK将窗口用作桌面(显示图标的东西)。 With Qt4, I can set this property to do so: 使用Qt4,我可以设置此属性来这样做:

window.setAttribute(Qt.WA_X11NetWmWindowTypeDesktop)

Is there anything similar for GTK? GTK有什么类似的东西吗?

Never mind, I found it: 没关系,我发现了:

window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DESKTOP)

And a very useful source: http://bloc.eurion.net/archives/2009/standalone-pygtk-desktop-widgets/ 还有一个非常有用的资源: http : //bloc.eurion.net/archives/2009/standalone-pygtk-desktop-widgets/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM