def __init__(self,data,globals=None,locals=None,loader=None,**params):
gui.Document.__init__(self,**params)
# This ensures that the whole HTML document is left-aligned within
# the rendered surface.
self.style.align = -1
_globals,_locals = globals,locals
if _globals == None: _globals = {}
if _locals == None: _locals = {}
self._globals = _globals
self._locals = _locals
#font = gui.theme.get("label","","font")
if (htmllib):
# The constructor is slightly different
p = _html(None, 0)
else:
p = _html()
p.init(self,self.style.font,self.style.color,_globals,_locals,
loader=loader)
p.feed(data)
p.close()
p.mydone()
评论列表
文章目录