Hi
I never got it working with Unix/GTK, I am interested in a working
sample for this environment.
make the same approach as in the vtk case (look at the wxpython demo):
in _win_canvas.__init__
if wxPlatform != '__WXMSW__':
# We can't get the handle in wxGTK until after the widget
# is created, the window create event happens later so we'll
# catch it there
EVT_WINDOW_CREATE(self, self.OnCreateWindow)
else:
# but in MSW, the window create event happens durring the above
# call to __init__ so we have to do it here.
self.handle = self.GetHandle()
# the oncreate handler
def OnCreateWindow(self, event):
self.handle = self.GetHandle()
regards
uwe