At 11:21 07.11.01 +1100, David Pinson wrote:
>I'm using pygtk + vtk on win32 with python 2.1
>
> [...]
>
>>It might be as simple as replacing 
>
>>str (self.box.get_window ().xid)
>>with 
>>str (self.box.get_window ().hwnd)
>
>>but I am not sure.
>
>Ok, so looking at the pygtk sources I see that in PyGdkWindow_GetAttr:
>#ifdef WITH_XSTUFF
>    if (!strcmp(key, "xid"))
>        return PyInt_FromLong(GDK_WINDOW_XWINDOW(win));
>#endif
>
>So is there a way I can get the HWND I need fro win32?
>
#include <gdk/win32/gdkwin32.h>
GDK_DRAWABLE_XID(win)

with the early Gtk 1.3 (win32-production).

GDK_WINDOW_HWND (win)
with the upcoming Gtk 2.0 (current cvs)

        Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to 
get along without it.                -- Dilbert
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to