/examples/addonsgallery/IntroTab.py
Python | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | 8e969dcc2ea3230f9d4967dd59254b93 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
- from Sink import Sink, SinkInfo
- from ui import HTML
- class IntroTab(Sink):
- def __init__(self):
- text="<div class='infoProse'>Welcome to the Addons Gallery. "
- text+="This app shows off the addon components for Pyjamas.</div>"
- self.setWidget(HTML(text, True))
- def onShow(self):
- pass
- def init():
- return SinkInfo("Intro", "<b>Introduction to the Addons Gallery</b>", IntroTab)