/examples/helloworld/Hello.py
Python | 10 lines | 8 code | 2 blank | 0 comment | 0 complexity | 96e29a90a069e53ff67790b1c02187cb MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
- 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)