diff frontends/src/primitivus/xmlui.py @ 2361:5defafc8ede6

core, frontends (xmlui): new LabelContainer: LabelContainer is like a PairContainer where first widget can only be LabelWidget or EmptyWidget. This case is the most common, and allow to generate better code when label can be associated to widget (e.g. in HTML).
author Goffi <goffi@goffi.org>
date Sun, 24 Sep 2017 16:36:11 +0200
parents cba3323710f0
children 8b37a62336c3
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Sun Sep 24 16:32:22 2017 +0200
+++ b/frontends/src/primitivus/xmlui.py	Sun Sep 24 16:36:11 2017 +0200
@@ -279,6 +279,10 @@
         self.addWidget(widget)
 
 
+class PrimitivusLabelContainer(PrimitivusPairsContainer, xmlui.LabelContainer):
+    pass
+
+
 class PrimitivusTabsContainer(xmlui.TabsContainer, sat_widgets.TabsContainer):
 
     def __init__(self, _xmlui_parent):