# HG changeset patch # User Goffi # Date 1522936790 -7200 # Node ID b6e6afb0dc4666be7c017768d82692d94a129c8e # Parent 7f7f3b8eb154c3c54d97a5ff57b2557c4c699547 xmlui: added LabelContainer and updated XMLUIPanel following changes in main class diff -r 7f7f3b8eb154 -r b6e6afb0dc46 src/cagou/core/xmlui.py --- a/src/cagou/core/xmlui.py Thu Feb 23 07:30:37 2017 +0100 +++ b/src/cagou/core/xmlui.py Thu Apr 05 15:59:50 2018 +0200 @@ -294,6 +294,10 @@ self.add_widget(widget) +class LabelContainer(PairsContainer, xmlui.LabelContainer): + pass + + class TabsPanelContainer(TabbedPanelItem): def _xmluiAppend(self, widget): @@ -479,13 +483,20 @@ class XMLUIPanel(xmlui.XMLUIPanel, ScrollView): 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): ScrollView.__init__(self) self.close_cb = None self._grid = XMLUIPanelGrid() self._post_treats = [] # list of callback to call after UI is constructed ScrollView.add_widget(self, self._grid) - 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) def add_widget(self, wid): self._grid.add_widget(wid)