def test_axial_plane_with_actor(self): logging.debug("In VtkAxialSceneTest::test_axial_scene_with_actor()") from PySide import QtCore, QtGui app = QtGui.QApplication(sys.argv) cone = vtk.vtkConeSource() cone.SetResolution(8) coneMapper = vtk.vtkPolyDataMapper() coneMapper.SetInput(cone.GetOutput()) coneActor = vtk.vtkActor() coneActor.SetMapper(coneMapper) widget = AxialPlane() widget.setWindowTitle("Test AxialPlane with actor") widget.scene.actor = coneActor widget.scene.renderer.ResetCamera() widget.show() app.exec_()