comparison src/browser/sat_browser/xmlui.py @ 1107:2066d4fd9036

browser: fixed XMLUI Panel and Dialog
author Goffi <goffi@goffi.org>
date Sun, 03 Jun 2018 14:04:05 +0200
parents f2170536ba23
children
comparison
equal deleted inserted replaced
1106:09feea19d7b9 1107:2066d4fd9036
429 self.host.launchAction(action_id, data, callback=self._defaultCb) 429 self.host.launchAction(action_id, data, callback=self._defaultCb)
430 430
431 431
432 class XMLUIPanel(LiberviaXMLUIBase, xmlui.XMLUIPanel, VerticalPanel): 432 class XMLUIPanel(LiberviaXMLUIBase, xmlui.XMLUIPanel, VerticalPanel):
433 433
434 def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, ignore=None, profile=C.PROF_KEY_NONE): 434 def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, ignore=None, whitelist=None, profile=C.PROF_KEY_NONE):
435 self.widget_factory = WidgetFactory(self) 435 self.widget_factory = WidgetFactory(self)
436 self.host = host 436 self.host = host
437 VerticalPanel.__init__(self) 437 VerticalPanel.__init__(self)
438 self.setSize('100%', '100%') 438 self.setSize('100%', '100%')
439 xmlui.XMLUIPanel.__init__(self, 439 xmlui.XMLUIPanel.__init__(self,
483 483
484 484
485 class XMLUIDialog(LiberviaXMLUIBase, xmlui.XMLUIDialog): 485 class XMLUIDialog(LiberviaXMLUIBase, xmlui.XMLUIDialog):
486 dialog_factory = GenericFactory() 486 dialog_factory = GenericFactory()
487 487
488 def __init__(self, host, parsed_dom, title = None, flags = None, callback=None, ignore=None, profile=C.PROF_KEY_NONE): 488 def __init__(self, host, parsed_dom, title=None, flags=None, callback=None, ignore=None, whitelist=None, profile=C.PROF_KEY_NONE):
489 self.dialog_factory = GenericFactory(self) 489 self.dialog_factory = GenericFactory(self)
490 xmlui.XMLUIDialog.__init__(self, 490 xmlui.XMLUIDialog.__init__(self,
491 host, 491 host,
492 parsed_dom, 492 parsed_dom,
493 title=title, 493 title=title,