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).
This commit is contained in:
Goffi 2017-09-24 16:36:11 +02:00
commit 506f948214

View file

@ -279,6 +279,10 @@ class PrimitivusPairsContainer(xmlui.PairsContainer, sat_widgets.TableContainer)
self.addWidget(widget)
class PrimitivusLabelContainer(PrimitivusPairsContainer, xmlui.LabelContainer):
pass
class PrimitivusTabsContainer(xmlui.TabsContainer, sat_widgets.TabsContainer):
def __init__(self, _xmlui_parent):