#NEWLINE# def set_title( self , title = None ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# if ( title == None ) : #NEWLINE# #INDENT# self . title = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# length = ( ( self . width - ( self . TITLE_FORMAT [ 'padding' ] * 2 ) ) - self . TITLE_FORMAT [ 'length' ] ) #NEWLINE# text = title [ : length ] . center ( length ) #NEWLINE# padding = ( ' ' * title . TITLE_FORMAT [ 'padding' ] ) #NEWLINE# self . title = [ ( ( padding + ( self . TITLE_FORMAT [ 'text' ] % text ) ) + padding ) ] #NEWLINE# #UNINDENT# self . refresh = self . drawn