Is window as an int in there? Have a look at src/display.c There you'll see the X11 properties put in there.
Is this what you're after? info = pygame.display.get_wm_info() windowid = info.get("window") print "The window ID is", hex(windowid) display is a pointer on X11. On Thu, Mar 6, 2008 at 4:18 PM, Patrick Mullen <[EMAIL PROTECTED]> wrote: > I am embedding ogre in a pygame window, which is working fine on > windows, but on linux ogre needs not only the window handle, but also > a display pointer and screen id. Fortunately, > pygame.display.get_wm_info() returns a display field, and the screen > id I assume is just zero. Unfortunately, the display field in the > dictionary is of type PyObject, and has absolutely no accessible > properties. Is there any way to get access to this information or am > I just stuck? >