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