def close(self): PythonShellMixin.close(self, sys.stderr.write) # take care of the frame if self._frame: self._frame.Destroy() del self._frame
def close(self): # parameter is exception_printer method PythonShellMixin.close(self, self._module_manager.log_error_with_exception) for i in range(len(self.get_input_descriptions())): self.set_input(i, None) self._view_frame.Destroy() del self._view_frame ModuleBase.close(self)