comparison cagou/core/xmlui.py @ 129:0704f3be65cb

xmlui: fixed missing whitelist argument
author Goffi <goffi@goffi.org>
date Fri, 06 Apr 2018 16:11:00 +0200
parents cd99f70ea592
children 8ed389d15690
comparison
equal deleted inserted replaced
128:d3ebe8caa26b 129:0704f3be65cb
481 pass 481 pass
482 482
483 class XMLUIPanel(xmlui.XMLUIPanel, ScrollView): 483 class XMLUIPanel(xmlui.XMLUIPanel, ScrollView):
484 widget_factory = WidgetFactory() 484 widget_factory = WidgetFactory()
485 485
486 def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, ignore=None, profile=C.PROF_KEY_NONE): 486 def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, ignore=None, whitelist=None, profile=C.PROF_KEY_NONE):
487 ScrollView.__init__(self) 487 ScrollView.__init__(self)
488 self.close_cb = None 488 self.close_cb = None
489 self._grid = XMLUIPanelGrid() 489 self._grid = XMLUIPanelGrid()
490 self._post_treats = [] # list of callback to call after UI is constructed 490 self._post_treats = [] # list of callback to call after UI is constructed
491 ScrollView.add_widget(self, self._grid) 491 ScrollView.add_widget(self, self._grid)
494 parsed_xml, 494 parsed_xml,
495 title=title, 495 title=title,
496 flags=flags, 496 flags=flags,
497 callback=callback, 497 callback=callback,
498 ignore=ignore, 498 ignore=ignore,
499 whitelist=whitelist,
499 profile=profile) 500 profile=profile)
500 501
501 def add_widget(self, wid): 502 def add_widget(self, wid):
502 self._grid.add_widget(wid) 503 self._grid.add_widget(wid)
503 504