/examples/helloworld/Hello.py
http://pyjamas.googlecode.com/ · Python · 10 lines · 8 code · 2 blank · 0 comment · 0 complexity · 96e29a90a069e53ff67790b1c02187cb MD5 · raw file
- from ui import Button, RootPanel
- import Window
- def greet(sender):
- Window.alert("Hello, AJAX!")
- class Hello:
- def onModuleLoad(self):
- b = Button("Click me", greet)
- RootPanel().add(b)