frontends (xmlui): added an attribute to ignore some widgets (and their label) in create

This commit is contained in:
Goffi 2017-11-05 13:53:28 +01:00
commit fc2af0da9e

View file

@ -393,10 +393,17 @@ class WidgetFactory(GenericFactory):
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):