def close(self): # close down the vtkPipeline stuff vtkPipelineConfigModuleMixin.close(self) # take out our view interface if self._viewFrame is not None: self._viewFrame.Destroy() # get rid of our reference del self._reader
def close(self): # we play it safe... (the graph_editor/module_manager should have # disconnected us by now) self.set_input(0, None) # don't forget to call the close() method of the vtkPipeline mixin vtkPipelineConfigModuleMixin.close(self) # take out our view interface self._viewFrame.Destroy() # get rid of our reference del self._contourFilter