Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py Sun Nov 05 13:44:07 2017 +0100 +++ b/frontends/src/primitivus/xmlui.py Sun Nov 05 13:53:28 2017 +0100 @@ -393,10 +393,17 @@ class XMLUIPanel(xmlui.XMLUIPanel, PrimitivusWidget): widget_factory = WidgetFactory() - def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, profile=C.PROF_KEY_NONE): + def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, ignore=None, profile=C.PROF_KEY_NONE): self.widget_factory._xmlui_main = self self._dest = None - xmlui.XMLUIPanel.__init__(self, host, parsed_xml, title, flags, callback, profile) + xmlui.XMLUIPanel.__init__(self, + host, + parsed_xml, + title = title, + flags = flags, + callback = callback, + ignore = ignore, + profile = profile) PrimitivusWidget.__init__(self, self.main_cont, self.xmlui_title) def constructUI(self, parsed_dom):