original_docstring: Save image of current window to an already saved location or ask for a specified location if none exists.
  
          If there is no current window, then simply create one::
  
              generate_random_image(500,128)
  
          
docstring: Save image of current window to an already saved location or ask for a specified location if none exists.
  If there is no current window, then simply create one:.
  
  
docstring_tokens: Save image of current window to an already saved location or ask for a specified location if none exists . If there is no current window then simply create one : .
code: def save(self):
          '''Save image of current window to an already saved location or ask for a specified location if none exists.
  
          If there is no current window, then simply create one::
  
              generate_random_image(500,128)
  
          '''
          if g.currentWindow is None:
              generate_random_image(500, 128)
          save_file(g.settings['filename'])
code_tokens: def save ( self ) : if g . currentWindow is None : generate_random_image ( 500 , 128 ) save_file ( g . settings [ 'filename' ] )
short_docstring: Save image of current window to an already saved location or ask for a specified location if none exists.
short_docstring_tokens: Save image of current window to an already saved location or ask for a specified location if none exists .
comment: '''Save image of current window to an already saved location or ask for a specified location if none exists.
  
          If there is no current window, then simply create one::
  
              generate_random_image(500,128)
  
          '''