<s> import pyjd <EOL> from pyjamas . ui . RootPanel import RootPanel <EOL> from pyjamas . ui . Button import Button <EOL> from pyjamas . ui . HTML import HTML <EOL> from pyjamas . ui . Label import Label <EOL> from pyjamas import Window <EOL> import pygwt <EOL> def greet ( fred ) : <EOL> fred . setText ( "<STR_LIT>" ) <EOL> Window . alert ( "<STR_LIT>" ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> pyjd . setup ( "<STR_LIT>" ) <EOL> b = Button ( "<STR_LIT>" , greet , StyleName = '<STR_LIT>' ) <EOL> h = HTML ( "<STR_LIT>" , StyleName = '<STR_LIT>' ) <EOL> l = Label ( "<STR_LIT>" , StyleName = '<STR_LIT>' ) <EOL> base = HTML ( "<STR_LIT>" % pygwt . getModuleBaseURL ( ) , <EOL> StyleName = '<STR_LIT>' ) <EOL> RootPanel ( ) . add ( b ) <EOL> RootPanel ( ) . add ( h ) <EOL> RootPanel ( ) . add ( l ) <EOL> RootPanel ( ) . add ( base ) <EOL> pyjd . run ( ) </s>
