/pyjs/tests/test011.py

http://pyjamas.googlecode.com/ · Python · 6 lines · 5 code · 1 blank · 0 comment · 0 complexity · 7c822f4a32f3247e94e9b05dd7f6a43c MD5 · raw file

  1. from ui import Button, RootPanel
  2. class Hello:
  3. def onModuleLoad(self):
  4. b = Button("Click me")
  5. RootPanel().add(b)