PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 19ms app.codeStats 0ms

/examples/addonsgallery/IntroTab.py

http://pyjamas.googlecode.com/
Python | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | 8e969dcc2ea3230f9d4967dd59254b93 MD5 | raw file
 1from Sink import Sink, SinkInfo
 2from ui import HTML
 3
 4class IntroTab(Sink):
 5    def __init__(self):
 6        text="<div class='infoProse'>Welcome to the Addons Gallery.  "
 7        text+="This app shows off the addon components for Pyjamas.</div>"
 8        self.setWidget(HTML(text, True))
 9
10    def onShow(self):
11        pass
12
13
14def init():
15    return SinkInfo("Intro", "<b>Introduction to the Addons Gallery</b>", IntroTab)