On Mon, Mar 17, 2003 at 01:48:53PM -0600, John Hunter wrote:
> >>>>> "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.

As Cedric says, this is not too bad at all with the slick distutils
stuff. I had autotools, but its clumsy (that can be
scripted/config.sited away) and slow (because subshells are slow due to
poor fork performance on win32). The distutils stuff is great.

If you want glade bindings, you need the libglade bin release.
Building libglade is just like gtk+ and friends. Easy if you have cygwin
and you ensure that you invoke the configure script with the right
magic. It's still clumsy and slow. 

One thing tricky Cedric didn't seem to do is put a link to libglade
binaries (at least I can't find it). However, they are on his site in
the binaries directory along with the pygtk binary release. This will
save you having to build them yourself.

--jkl

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to