original_docstring: 
          Register a surface to be rendered into when the draw() method is called.
          This will dump every drawing action performed on this window and all subwindows to the surface specified.
          While this can be used to extract window content from anywhere in the window stack, this would be very resource intensive to do, thus it is highly discouraged.
          
docstring: Register a surface to be rendered into when the draw() method is called.
  This will dump every drawing action performed on this window and all subwindows to the surface specified.
  While this can be used to extract window content from anywhere in the window stack, this would be very resource intensive to do, thus it is highly discouraged.
docstring_tokens: Register a surface to be rendered into when the draw () method is called . This will dump every drawing action performed on this window and all subwindows to the surface specified . While this can be used to extract window content from anywhere in the window stack this would be very resource intensive to do thus it is highly discouraged .
code: def connectSurface(self, surf):
  
          """
          Register a surface to be rendered into when the draw() method is called.
          This will dump every drawing action performed on this window and all subwindows to the surface specified.
          While this can be used to extract window content from anywhere in the window stack, this would be very resource intensive to do, thus it is highly discouraged.
          """
  
          if isinstance(surf, pygame.Surface):
              self.connectedSurface = surf
              if self.parent:
                  self.logger.warn(repr(surf)+" was connected to "+repr(self)+" even though it isn't the root Window!")
          else:
              raise ValueError("surf must be of type "+str(type(pygame.Surface))+"!")
code_tokens: def connectSurface ( self , surf ) : if isinstance ( surf , pygame . Surface ) : self . connectedSurface = surf if self . parent : self . logger . warn ( repr ( surf ) + " was connected to " + repr ( self ) + " even though it isn't the root Window!" ) else : raise ValueError ( "surf must be of type " + str ( type ( pygame . Surface ) ) + "!" )
short_docstring: Register a surface to be rendered into when the draw() method is called.
short_docstring_tokens: Register a surface to be rendered into when the draw () method is called .
comment: """
          Register a surface to be rendered into when the draw() method is called.
          This will dump every drawing action performed on this window and all subwindows to the surface specified.
          While this can be used to extract window content from anywhere in the window stack, this would be very resource intensive to do, thus it is highly discouraged.
          """