[vtkusers] [VTK4.x + Python + wxPhyton] wxVTKRenderWindow maturity

David Gobbi dgobbi at irus.rri.ca
Wed Feb 27 15:00:03 EST 2002


On Wed, 27 Feb 2002, Eric Boix wrote:

> Now with Win32 (hey, I'm not so fond of Win32, but some of my lab users
> "need" it. Sighhh) : the testSplitter.py scripts freezes on a call back to
> wxVTKRenderWindow._OnSize. When you comment out the line 250 i.e.
>         self._RenderWindow.SetSize(width, height)
> in wxVTKRenderWindow._OnSize, then everything works great !
> Any logical explanation ?

I've committed this patch to VTK 4.x as well.  On my windows box
(wxPython 2.3.2) it didn't freeze, but the window height was
set incorrectly.  It looks like the GetSize() attribute of the size
events is messed up for splitter windows (i.e. probably a bug in
wxMSW).  The RenderWindow::SetSize() doesn't seem to be necessary
on Windows (it must be handled internally) so I just chopped it out.

> Quoting Prabhu Ramachandran <prabhu at cyberwaveindia.com>
> > I'll second that.  Maybe using wxPython 2.2.6 (which is the stable
> > release) is a better option.
> Sorry Prabhu but I could't find any reference to 2.2.6 version on the
> download page of wxPython at sourceforge :
> http://sourceforge.net/project/showfiles.php?group_id=10718&release_id=66468
> Did I miss something ?

For some reason,  Robin Dunn only links the 2.3.x wxPython distribution
from his web site.  You can go directly to the sourceforge download page
http://prdownloads.sourceforge.net/wxpython/

 - David




More information about the vtkusers mailing list