#NEWLINE# @ layout . setter #NEWLINE# def layout( self , layout ) : #NEWLINE# #INDENT# '\n        Parameters\n        ==========\n        layout :\n            a string with matching the name of a Layout object.\n        ' #NEWLINE# for ( index , obj ) in enumerate ( self . layouts ) : #NEWLINE# #INDENT# if ( obj . name == layout ) : #NEWLINE# #INDENT# self . currentLayout = index #NEWLINE# hook . fire ( 'layout_change' , self . layouts [ self . currentLayout ] , self ) #NEWLINE# self . layoutAll ( ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# raise ValueError ( ( 'No such layout: %s' % layout ) )