>>>>> "John" == John K Luebs <[EMAIL PROTECTED]> writes:
John> The concept of a window ID is not cross platform so I think John> a "cross platform" method is misleading. GDK has two macros: John> GDK_WINDOW_XID and GDK_WINDOW_HWND. I'm not familiar with John> the FB stuff. This will expose attributes: xid and hwnd that John> will do the proper conversion and return them in a Python John> long.
John> Try the patch below.
Worked like a charm. Without the window id, the vtk render window will popup a second window rather than render in the desired window. With the xid attribute, and a call to self._RenderWindow.SetWindowInfo(win_id), it stays in place.
I do need this code to work on linux and win32. From your patch, I see you expose hwnd for GDK_WINDOWING_WIN32. Is this the xid analog for win32 systems? If so, do you by chance have a patched pygtk-1.99.15 windows build for python2.2? One of these days I'm going to have to build under windows, but I am deeply terrified of the experience. Maybe I shouldn't be.
See http://www.pcpm.ucl.ac.be/~gustin/win32_ports/
Building pygtk with mingw on win32 is not THAT difficult if you use the distutils script.
Cedric
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
