def runTest(frame, nb, log):
if haveVTK:
- win = vtk.wxVTKRenderWindow(nb, -1)
+ f = wxFrame(frame, -1, "wxVTKRenderWindow", size=(450, 300))
+ win = vtk.wxVTKRenderWindow(f, -1)
# Get the render window
renWin = win.GetRenderWindow()
scalarBar.SetHeight(0.17)
ren.AddActor2D(scalarBar)
- return win
+ f.Show(true)
+ frame.otherWin = f
+ return None
else:
- wxMessageBox("Unable to import VTK, which is a required component "
- "of this demo. You need to download and install the "
+ wxMessageBox("Unable to import VTK, which is a required component\n"
+ "of this demo. You need to download and install the\n"
"Python extension module for VTK from http://www.kitware.com/",
"Import Error")
return None