#NEWLINE# def __init__( self , file_name = None , title = 'Title' , file_type = 'text' , code = None ) : #NEWLINE# #INDENT# super ( TextWindow , self ) . __init__ ( None ) #NEWLINE# self . setWindowTitle ( title ) #NEWLINE# self . resize ( 900 , 600 ) #NEWLINE# self . editor = QtGui . QTextEdit ( self ) #NEWLINE# self . setCentralWidget ( self . editor ) #NEWLINE# self . editor . setFocus ( ) #NEWLINE# self . handle_file ( file_name , file_type , code )