PageRenderTime 486ms CodeModel.GetById 211ms app.highlight 1ms RepoModel.GetById 201ms app.codeStats 0ms

/examples/browserdetect/BrowserDetect.py

http://pyjamas.googlecode.com/
Python | 11 lines | 8 code | 3 blank | 0 comment | 0 complexity | e609a7e34b5a102401decb48750503fe MD5 | raw file
 1from ui import Label, RootPanel
 2
 3class BrowserDetect:
 4    def onModuleLoad(self):
 5        self.l = Label()
 6        RootPanel().add(self.l)
 7        self.display()
 8
 9    def display(self):
10        self.l.setText("Browser not detected/supported")
11