PageRenderTime 34ms CodeModel.GetById 0ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Apache-2.0
  1. from Sink import Sink, SinkInfo
  2. from ui import Frame
  3. class Frames(Sink):
  4. def __init__(self):
  5. self.frame=Frame(self.baseURL() + "rembrandt/LaMarcheNocturne.html")
  6. self.frame.setWidth("100%")
  7. self.frame.setHeight("48em")
  8. self.initWidget(self.frame)
  9. def init():
  10. text="If you need to include multiple pages of good ol' static HTML, it's easy to do using the <code>Frame</code> class."
  11. return SinkInfo("Frames", text, Frames)