<s> """<STR_LIT>""" <EOL> from pyjamas . ui . SimplePanel import SimplePanel <EOL> from pyjamas . ui . FormPanel import FormPanel <EOL> from pyjamas . ui . VerticalPanel import VerticalPanel <EOL> from pyjamas . ui . HorizontalPanel import HorizontalPanel <EOL> from pyjamas . ui . TextBox import TextBox <EOL> from pyjamas . ui . Label import Label <EOL> from pyjamas . ui . Button import Button <EOL> class FormPanelDemo ( SimplePanel ) : <EOL> def __init__ ( self ) : <EOL> SimplePanel . __init__ ( self ) <EOL> self . form = FormPanel ( Action = "<STR_LIT>" , <EOL> Target = "<STR_LIT>" ) <EOL> vPanel = VerticalPanel ( Spacing = <NUM_LIT:5> ) <EOL> hPanel = HorizontalPanel ( Spacing = <NUM_LIT:5> ) <EOL> hPanel . add ( Label ( "<STR_LIT>" ) ) <EOL> hPanel . add ( TextBox ( Name = "<STR_LIT:q>" ) ) <EOL> hPanel . add ( Button ( "<STR_LIT>" , self ) ) <EOL> vPanel . add ( hPanel ) <EOL> results = NamedFrame ( "<STR_LIT>" , <EOL> Width = "<STR_LIT>" , <EOL> Height = "<STR_LIT>" ) <EOL> vPanel . add ( results ) <EOL> self . form . add ( vPanel ) <EOL> self . add ( self . form ) <EOL> def onClick ( self , event ) : <EOL> self . form . submit ( ) </s>
