From: Robin Dunn Date: Fri, 6 Jul 2001 17:31:06 +0000 (+0000) Subject: changed the base class to wxWindow X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/749e08b9d1e5407ba6ccc4c9ac0e95c347c0e07c?ds=sidebyside changed the base class to wxWindow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wxPython/lib/vtk.py b/wxPython/wxPython/lib/vtk.py index 12f93cfa4c..860b30ad45 100644 --- a/wxPython/wxPython/lib/vtk.py +++ b/wxPython/wxPython/lib/vtk.py @@ -37,7 +37,7 @@ def debug(msg): print msg -class wxVTKRenderWindowBase(wxScrolledWindow): +class wxVTKRenderWindowBase(wxWindow): """ A base class that enables one to embed a vtkRenderWindow into a wxPython widget. This class embeds the RenderWindow correctly @@ -49,13 +49,7 @@ class wxVTKRenderWindowBase(wxScrolledWindow): def __init__(self, parent, id, position=wxDefaultPosition, size=wxDefaultSize, style=0): - wxScrolledWindow.__init__(self, parent, id, position, size, style | wxWANTS_CHARS) - style = style | wxWANTS_CHARS - - # This box is necessary to eliminate flicker and enable proper - # event handling under Linux/GTK. - #self.box = wxPanel(self, -1, position, size, style) - + wxWindow.__init__(self, parent, id, position, size, style | wxWANTS_CHARS) self._RenderWindow = vtkRenderWindow() self.__InExpose = 0