Mercurial > libervia-backend
comparison frontends/src/primitivus/xmlui.py @ 2419:c38c54c47e16
frontends (xmlui): added an attribute to ignore some widgets (and their label) in create
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 05 Nov 2017 13:53:28 +0100 |
parents | 8b37a62336c3 |
children | 0046283a285d |
comparison
equal
deleted
inserted
replaced
2418:69f979adb1d7 | 2419:c38c54c47e16 |
---|---|
391 | 391 |
392 | 392 |
393 class XMLUIPanel(xmlui.XMLUIPanel, PrimitivusWidget): | 393 class XMLUIPanel(xmlui.XMLUIPanel, PrimitivusWidget): |
394 widget_factory = WidgetFactory() | 394 widget_factory = WidgetFactory() |
395 | 395 |
396 def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, profile=C.PROF_KEY_NONE): | 396 def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, ignore=None, profile=C.PROF_KEY_NONE): |
397 self.widget_factory._xmlui_main = self | 397 self.widget_factory._xmlui_main = self |
398 self._dest = None | 398 self._dest = None |
399 xmlui.XMLUIPanel.__init__(self, host, parsed_xml, title, flags, callback, profile) | 399 xmlui.XMLUIPanel.__init__(self, |
400 host, | |
401 parsed_xml, | |
402 title = title, | |
403 flags = flags, | |
404 callback = callback, | |
405 ignore = ignore, | |
406 profile = profile) | |
400 PrimitivusWidget.__init__(self, self.main_cont, self.xmlui_title) | 407 PrimitivusWidget.__init__(self, self.main_cont, self.xmlui_title) |
401 | 408 |
402 def constructUI(self, parsed_dom): | 409 def constructUI(self, parsed_dom): |
403 def postTreat(): | 410 def postTreat(): |
404 assert self.main_cont.body | 411 assert self.main_cont.body |