def test_coronal_plane_with_actor(self): logging.debug("In CoronalPlaneTest::test_coronal_plane_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 = CoronalPlane() widget.setWindowTitle("Test CoronalPlane with actor") widget.scene.actor = coneActor widget.scene.renderer.ResetCamera() widget.show() app.exec_()