PageRenderTime 402ms CodeModel.GetById 17ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Apache-2.0
  1. from ui import Label, RootPanel
  2. class BrowserDetect:
  3. def onModuleLoad(self):
  4. self.l = Label()
  5. RootPanel().add(self.l)
  6. self.display()
  7. def display(self):
  8. self.l.setText("Browser not detected/supported")