changeset 125:b6e6afb0dc46

xmlui: added LabelContainer and updated XMLUIPanel following changes in main class
author Goffi <goffi@goffi.org>
date Thu, 05 Apr 2018 15:59:50 +0200
parents 7f7f3b8eb154
children cd99f70ea592
files src/cagou/core/xmlui.py
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)