parameters: (self, filename=None)
docstring: Redirect sys.stdout and sys.stderr to a file or a popup window.
docstring_summary: Redirect sys.stdout and sys.stderr to a file or a popup window.
docstring_tokens: Redirect sys . stdout and sys . stderr to a file or a popup window .
function: def RedirectStdio(self, filename=None):
          """Redirect sys.stdout and sys.stderr to a file or a popup window."""
          if filename:
              _sys.stdout = _sys.stderr = open(filename, 'a')
          else:
              self.stdioWin = self.outputWindowClass()
              _sys.stdout = _sys.stderr = self.stdioWin
function_tokens: def RedirectStdio ( self , filename = None ) : if filename : _sys . stdout = _sys . stderr = open ( filename , 'a' ) else : self . stdioWin = self . outputWindowClass ( ) _sys . stdout = _sys . stderr = self . stdioWin