#NEWLINE# def save_as_cb( self ) : #NEWLINE# #INDENT# path = str ( self . entry2 . get_text ( ) ) . strip ( ) #NEWLINE# if ( not path . startswith ( '/' ) ) : #NEWLINE# #INDENT# path = os . path . join ( self . curpath , path ) #NEWLINE# #UNINDENT# image = self . fitsimage . get_image ( ) #NEWLINE# if ( image is None ) : #NEWLINE# #INDENT# self . logger . error ( 'No image to save' ) #NEWLINE# return #NEWLINE# #UNINDENT# self . fv . error_wrap ( image . save_as_file , path )