/examples/addonsgallery/IntroTab.py

http://pyjamas.googlecode.com/ · Python · 15 lines · 11 code · 4 blank · 0 comment · 0 complexity · 8e969dcc2ea3230f9d4967dd59254b93 MD5 · raw file

  1. from Sink import Sink, SinkInfo
  2. from ui import HTML
  3. class IntroTab(Sink):
  4. def __init__(self):
  5. text="<div class='infoProse'>Welcome to the Addons Gallery. "
  6. text+="This app shows off the addon components for Pyjamas.</div>"
  7. self.setWidget(HTML(text, True))
  8. def onShow(self):
  9. pass
  10. def init():
  11. return SinkInfo("Intro", "<b>Introduction to the Addons Gallery</b>", IntroTab)