Mercurial > libervia-backend
diff frontends/src/wix/xmlui.py @ 803:f100fd8d279f
core, frontends: implementation of AdvancedListContainer first draft + misc:
/!\ Urwid SàText must be updated as the new TableContainer is used /!\
- fixed button value in paramsXML2XMLUI
- new Urwid SàText TabContainer is used in Primitivus for PairsContainer and AdvancedListContainer
- fixed in core's XMLUI AdvanceListContainer
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 04 Feb 2014 18:19:29 +0100 |
parents | 9007bb133009 |
children | 5174657b3378 |
line wrap: on
line diff
--- a/frontends/src/wix/xmlui.py Tue Feb 04 18:19:00 2014 +0100 +++ b/frontends/src/wix/xmlui.py Tue Feb 04 18:19:29 2014 +0100 @@ -138,9 +138,20 @@ self.sizer.Add(widget, self._xmlui_proportion, flag=wx.EXPAND) +class AdvancedListContainer(WixContainer, xmlui.AdvancedListContainer, wx.Panel): + + def __init__(self, parent, columns): + wx.Panel.__init__(self, parent) + self.sizer = wx.FlexGridSizer(cols=columns) + self.SetSizer(self.sizer) + + def _xmluiAddRow(self): + pass + + class PairsContainer(WixContainer, xmlui.PairsContainer, wx.Panel): - def __init__(self, parent, weight_0='1', weight_1='1'): + def __init__(self, parent): wx.Panel.__init__(self, parent) self.sizer = wx.FlexGridSizer(cols=2) self.sizer.AddGrowableCol(1) #The growable column need most of time to be the right one in pairs