PageRenderTime 283ms CodeModel.GetById 121ms app.highlight 1ms RepoModel.GetById 160ms app.codeStats 0ms

/examples/helloworld/Hello.py

http://pyjamas.googlecode.com/
Python | 10 lines | 8 code | 2 blank | 0 comment | 0 complexity | 96e29a90a069e53ff67790b1c02187cb MD5 | raw file
 1from ui import Button, RootPanel
 2import Window
 3
 4def greet(sender):
 5    Window.alert("Hello, AJAX!")
 6
 7class Hello:
 8    def onModuleLoad(self):
 9        b = Button("Click me", greet)
10        RootPanel().add(b)