[vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK.

Robin Dunn robin at alldunn.com
Fri Mar 9 13:48:03 EST 2001


>
>      (2) I noticed that you set the WindowId of the RenderWindow etc
>      when doing an OnPaint.  The vtk.py does this when the window is
>      realized.  There is another key difference on how the WindowId is
>      set.  The wxVTKWindow class does something funny for the
>      __WXGTK__ case.  You use a GtkPizza (I have no clue what that is)
>      and set the RenderWindow's WindowId and DisplayID by looking at
>      the pizza windows bin_window and getting its xwindow and
>      xdisplay.  The wxPython code cannot do something like this since
>      it will not have access to Gtk/Gdk stuff.  Instead of doing this
>      the wxPython.vtk code merely does this:
>
>          hdl = seld.GetHandle()
>          self.renderWindow.SetWindowInfo(str(hdl))
>
>      Does this matter?  Or do you have to do it someother way?

wxPython remaps the GetHandle method on wxGTK to go through all the GtkPizza
stuff and return the actual X window handle instead of the gtk widget
pointer.

--
Robin Dunn
Software Craftsman
robin at AllDunn.com       Java give you jitters?
http://wxPython.org      Relax with wxPython!









More information about the vtkusers mailing list