frontends (xmlui): added an attribute to ignore some widgets (and their label) in create
This commit is contained in:
parent
04c3f59571
commit
fc2af0da9e
1 changed files with 40 additions and 8 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue