<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><div>Yes.  But could you instead try something like super(vtkRenderWindow, self._RenderWindow).SetSize(w.h) to not call the X11/Win32/etc.. code?</div>
</div></div></blockquote><div><br>I tried to use super but vtk classes must be old-style classes, so it results in :<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TypeError: super() argument 1 must be type, not vtkclass</span><br>
<br>The following seems to work though :<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">vtk.vtkRenderWindow.SetSize(self._RenderWindow, w, h)<br>
<br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">If this is ok, then the resizeEvent method perhaps could be implemented like this:</span><br style="font-family: arial,helvetica,sans-serif;">
<br></span><span style="font-family:courier new,monospace">    def resizeEvent(self,ev):</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        w = self.width()</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        h = self.height()</span><span style="font-family:courier new,monospace"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        vtk.vtkRenderWindow.SetSize(self._RenderWindow, w, h)</span><br>
<span style="font-family:courier new,monospace">        self._Iren.SetSize(w, h)</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        self._Iren.ConfigureEvent()</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">        self.update()</span><br><br></div></div>