PageRenderTime 262ms CodeModel.GetById 258ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/kitchensink/Frames.py

http://pyjamas.googlecode.com/
Python | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | f8503293ef3afffb8d7b3596f75cab05 MD5 | raw file
 1from Sink import Sink, SinkInfo
 2from ui import Frame
 3
 4class Frames(Sink):
 5    def __init__(self):
 6        self.frame=Frame(self.baseURL() + "rembrandt/LaMarcheNocturne.html")
 7        
 8        self.frame.setWidth("100%")
 9        self.frame.setHeight("48em")
10        self.initWidget(self.frame)
11    
12def init():
13    text="If you need to include multiple pages of good ol' static HTML, it's easy to do using the <code>Frame</code> class."
14    return SinkInfo("Frames", text, Frames)
15