]> git.saurik.com Git - wxWidgets.git/commitdiff
changed the base class to wxWindow
authorRobin Dunn <robin@alldunn.com>
Fri, 6 Jul 2001 17:31:06 +0000 (17:31 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 6 Jul 2001 17:31:06 +0000 (17:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/lib/vtk.py

index 12f93cfa4c7adf114cf3a76c4fa49bc6ac649485..860b30ad45aaa92f51ca749061a62af04efa4b77 100644 (file)
@@ -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