PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/pyjs/tests/test014.py

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