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:
parent
3f2c1046eb
commit
506f948214
1 changed files with 21 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue