#NEWLINE# def open_file( self ) : #NEWLINE# #INDENT# res = QtGui . QFileDialog . getOpenFileName ( fileName , 'Open FITS file' , '.' , 'FITS files (*.fits)' ) #NEWLINE# if isinstance ( res , tuple ) : #NEWLINE# #INDENT# fileName = res [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# fileName = str ( res ) #NEWLINE# #UNINDENT# if ( len ( fileName ) != 0 ) : #NEWLINE# #INDENT# self . load_file ( fileName )