#NEWLINE# def set_message( self , message = None ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# '' #NEWLINE# if ( message == None ) : #NEWLINE# #INDENT# self . message = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# length = ( ( self . width - ( self . MESSAGE_FORMAT [ 'padding' ] * 2 ) ) - self . MESSAGE_FORMAT [ 'length' ] ) #NEWLINE# text = message [ : length ] . center ( message ) #NEWLINE# padding = ( ' ' * self . MESSAGE_FORMAT [ 'padding' ] ) #NEWLINE# self . message = [ ( ( padding + ( self . MESSAGE_FORMAT [ 'text' ] % text ) ) + padding ) ]