<s> import pyjd <EOL> from pyjamas . ui . VerticalPanel import VerticalPanel <EOL> from pyjamas . ui . FlowPanel import FlowPanel <EOL> from pyjamas . ui . RootPanel import RootPanel <EOL> from pyjamas . ui . Label import Label <EOL> from pyjamas . ui . Image import Image <EOL> from pyjamas . ui . SimplePanel import SimplePanel <EOL> from pyjamas import DOM <EOL> class FlowPanelDemo : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . root = RootPanel ( ) <EOL> self . flow = FlowPanel ( Width = "<STR_LIT>" , StyleName = '<STR_LIT>' ) <EOL> for x in range ( <NUM_LIT:0> , <NUM_LIT:10> ) : <EOL> self . panel = VerticalPanel ( ) <EOL> title = Label ( "<STR_LIT>" % x , Element = DOM . createElement ( '<STR_LIT>' ) , StyleName = "<STR_LIT>" ) <EOL> image = Image ( '<STR_LIT>' , Width = "<STR_LIT>" , Height = "<STR_LIT>" , StyleName = "<STR_LIT>" ) <EOL> self . panel . add ( title ) <EOL> self . panel . add ( image ) <EOL> self . flow . add ( self . panel ) <EOL> self . root . add ( self . flow ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> pyjd . setup ( "<STR_LIT>" ) <EOL> FlowPanelDemo ( ) <EOL> pyjd . run ( ) </s>
