#NEWLINE# def open( self ) : #NEWLINE# #INDENT# self . filename = QtGui . QFileDialog . getOpenFileName ( self , 'Open File' , '.' , '(*.writer)' ) #NEWLINE# if self . filename : #NEWLINE# #INDENT# with open ( self . filename , 'rt' ) as file : #NEWLINE# #INDENT# self . text . setText ( file . read ( ) )