[Xcb] xpyb ConfigureWindow causes LengthError
Donald Ephraim Curtis
dcurtis at cs.uiowa.edu
Mon Jul 27 06:38:01 PDT 2009
I am having some difficulties using xpyb to configure a window's
coordinates / size.
I have tried a few things:
connection.core.ConfigureWindow(
window,
(xproto.ConfigWindow.X |
xproto.ConfigWindow.Y |
xproto.ConfigWindow.Width |
xproto.ConfigWindow.Height),
[x,y,w,h])
connection.core.ConfigureWindow(
window,
(xproto.ConfigWindow.X |
xproto.ConfigWindow.Y |
xproto.ConfigWindow.Width |
xproto.ConfigWindow.Height),
[x,y,w,h,0,0,0])
connection.core.ConfigureWindow(
window,
(xproto.ConfigWindow.X |
xproto.ConfigWindow.Y |
xproto.ConfigWindow.Width |
xproto.ConfigWindow.Height),
struct.pack('IIIIIII', x,y,w,h,0,0,0))
All result in a:
Traceback (most recent call last):
File "./caw.py", line 705, in <module>
caw.mainloop()
File "./caw.py", line 603, in mainloop
event = conn.poll_for_event()
xcb.xproto.BadLength: <xcb.xproto.LengthError object at 0x9825a0>
I am attaching a simple demo...
--
Donald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure_error.py
Type: text/x-python
Size: 956 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20090727/3e18bb9c/attachment.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20090727/3e18bb9c/attachment.pgp
More information about the Xcb
mailing list