<s> from muntjac . api import VerticalLayout , Panel , Label , Button <EOL> from muntjac . ui . button import IClickListener <EOL> from muntjac . ui . themes import Reindeer <EOL> class PanelLightExample ( VerticalLayout , IClickListener ) : <EOL> def __init__ ( self ) : <EOL> super ( PanelLightExample , self ) . __init__ ( ) <EOL> self . setSpacing ( True ) <EOL> self . setSpacing ( True ) <EOL> self . _panel = Panel ( '<STR_LIT>' ) <EOL> self . _panel . setStyleName ( Reindeer . PANEL_LIGHT ) <EOL> self . _panel . setHeight ( '<STR_LIT>' ) <EOL> layout = self . _panel . getContent ( ) <EOL> layout . setMargin ( True ) <EOL> layout . setSpacing ( True ) <EOL> self . addComponent ( self . _panel ) <EOL> for _ in range ( <NUM_LIT:20> ) : <EOL> l = Label ( '<STR_LIT>' ) <EOL> self . _panel . addComponent ( l ) <EOL> b = Button ( '<STR_LIT>' ) <EOL> b . addListener ( self , IClickListener ) <EOL> self . addComponent ( b ) <EOL> def buttonClick ( self , event ) : <EOL> if self . _panel . getCaption ( ) is None : <EOL> self . _panel . setCaption ( '<STR_LIT>' ) <EOL> else : <EOL> self . _panel . setCaption ( None ) </s>
