comparison src/browser/sat_browser/xmlui.py @ 965:8f2c1ea36e96

browser (XMLUI): added new ignore argument
author Goffi <goffi@goffi.org>
date Sun, 05 Nov 2017 20:31:18 +0100
parents fd4eae654182
children f2170536ba23
comparison
equal deleted inserted replaced
964:fd4eae654182 965:8f2c1ea36e96
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, profile=C.PROF_KEY_NONE): 434 def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, ignore=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, host, parsed_xml, title, flags, callback, profile) 439 xmlui.XMLUIPanel.__init__(self,
440 host,
441 parsed_xml,
442 title = title,
443 flags = flags,
444 callback = callback,
445 profile = profile)
440 446
441 def setCloseCb(self, close_cb): 447 def setCloseCb(self, close_cb):
442 self.close_cb = close_cb 448 self.close_cb = close_cb
443 449
444 def _xmluiClose(self): 450 def _xmluiClose(self):
477 483
478 484
479 class XMLUIDialog(LiberviaXMLUIBase, xmlui.XMLUIDialog): 485 class XMLUIDialog(LiberviaXMLUIBase, xmlui.XMLUIDialog):
480 dialog_factory = GenericFactory() 486 dialog_factory = GenericFactory()
481 487
482 def __init__(self, host, parsed_dom, title = None, flags = None, callback=None, profile=C.PROF_KEY_NONE): 488 def __init__(self, host, parsed_dom, title = None, flags = None, callback=None, ignore=None, profile=C.PROF_KEY_NONE):
483 self.dialog_factory = GenericFactory(self) 489 self.dialog_factory = GenericFactory(self)
484 xmlui.XMLUIDialog.__init__(self, host, parsed_dom, title, flags, callback, profile) 490 xmlui.XMLUIDialog.__init__(self,
491 host,
492 parsed_dom,
493 title=title,
494 flags=flags,
495 callback=callback,
496 ignore=ignore,
497 profile=profile)
485 self.host = host 498 self.host = host
486 499
487 xmlui.registerClass(xmlui.CLASS_PANEL, XMLUIPanel) 500 xmlui.registerClass(xmlui.CLASS_PANEL, XMLUIPanel)
488 xmlui.registerClass(xmlui.CLASS_DIALOG, XMLUIDialog) 501 xmlui.registerClass(xmlui.CLASS_DIALOG, XMLUIDialog)
489 502