/examples/kitchensink/Frames.py
Python | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | f8503293ef3afffb8d7b3596f75cab05 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
- from Sink import Sink, SinkInfo
- from ui import Frame
- class Frames(Sink):
- def __init__(self):
- self.frame=Frame(self.baseURL() + "rembrandt/LaMarcheNocturne.html")
-
- self.frame.setWidth("100%")
- self.frame.setHeight("48em")
- self.initWidget(self.frame)
-
- def init():
- text="If you need to include multiple pages of good ol' static HTML, it's easy to do using the <code>Frame</code> class."
- return SinkInfo("Frames", text, Frames)