diff sat_frontends/tools/xmlui.py @ 2737:5c2ed8a5ae22

frontends (XMLUI): TabsContainer can now be the main container (Primitivus keep the old behaviour and always use VerticalContainer as main container)
author Goffi <goffi@goffi.org>
date Wed, 02 Jan 2019 18:32:16 +0100
parents bdb8276fd2da
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat_frontends/tools/xmlui.py	Wed Jan 02 18:28:30 2019 +0100
+++ b/sat_frontends/tools/xmlui.py	Wed Jan 02 18:32:16 2019 +0100
@@ -439,7 +439,7 @@
 
             if node.nodeName == "container":
                 type_ = node.getAttribute("type")
-                if _xmlui_parent is self and type_ != "vertical":
+                if _xmlui_parent is self and type_ not in ("vertical", "tabs"):
                     # main container is not a VerticalContainer and we want one,
                     # so we create one to wrap it
                     _xmlui_parent = self.widget_factory.createVerticalContainer(self)