[PyQt] Using Xlib

David Boddie david at boddie.org.uk
Sat Oct 20 02:02:27 BST 2007

On Friday 19 October 2007 00:39:11 -0300, Gustavo A. Díaz wrote:

> So, i was digging a little about X server states and using xlib from python
> module, and i did this on my app:
> self.display = display.Display(":0")
> self.net_wm_state_skip_taskbar = self.display.intern_atom
> self.net_wm_state_below = self.display.intern_atom ("_NET_WM_STATE_BELOW")
> self.net_wm_state = self.display.intern_atom("_NET_WM_STATE")
> self.display.screen().root.change_property(self.net_wm_state, Xatom.ATOM,
> 32, [self.net_wm_state_skip_taskbar,], X.PropModeAppend)
> Now, this has no absolute effect on my app. What is wrong?

Although I've looked at window manager hints before, I'm not familiar with
what you have done in the above code. Can you explain what each line is
supposed to do?


More information about the PyQt mailing list