#NEWLINE# def load( self , path = None ) : #NEWLINE# #INDENT# ' Loads the contents of the editor. ' #NEWLINE# if ( path is None ) : #NEWLINE# #INDENT# path = self . path #NEWLINE# #UNINDENT# if ( len ( path ) > 0 ) : #NEWLINE# #INDENT# f = open ( self . path , 'r' ) #NEWLINE# text = f . read ( ) #NEWLINE# f . close ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# text = '' #NEWLINE# #UNINDENT# self . control . SetText ( text ) #NEWLINE# self . dirty = False #NEWLINE# return