diff frontends/src/primitivus/xmlui.py @ 1486:a77217511afd

tools, frontends (xmlui): allow to select a tab when adding it
author souliane <souliane@mailoo.org>
date Fri, 21 Aug 2015 14:17:41 +0200
parents 90130847a0a8
children 8c071bc359c9
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Fri Aug 21 19:23:14 2015 +0200
+++ b/frontends/src/primitivus/xmlui.py	Fri Aug 21 14:17:41 2015 +0200
@@ -287,9 +287,9 @@
     def _xmluiAppend(self, widget):
         self.body.append(widget)
 
-    def _xmluiAddTab(self, label):
+    def _xmluiAddTab(self, label, selected):
         tab = PrimitivusVerticalContainer(None)
-        self.addTab(label, tab)
+        self.addTab(label, tab, selected)
         return tab