comparison 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
comparison
equal deleted inserted replaced
802:9007bb133009 803:f100fd8d279f
136 136
137 def _xmluiAppend(self, widget): 137 def _xmluiAppend(self, widget):
138 self.sizer.Add(widget, self._xmlui_proportion, flag=wx.EXPAND) 138 self.sizer.Add(widget, self._xmlui_proportion, flag=wx.EXPAND)
139 139
140 140
141 class AdvancedListContainer(WixContainer, xmlui.AdvancedListContainer, wx.Panel):
142
143 def __init__(self, parent, columns):
144 wx.Panel.__init__(self, parent)
145 self.sizer = wx.FlexGridSizer(cols=columns)
146 self.SetSizer(self.sizer)
147
148 def _xmluiAddRow(self):
149 pass
150
151
141 class PairsContainer(WixContainer, xmlui.PairsContainer, wx.Panel): 152 class PairsContainer(WixContainer, xmlui.PairsContainer, wx.Panel):
142 153
143 def __init__(self, parent, weight_0='1', weight_1='1'): 154 def __init__(self, parent):
144 wx.Panel.__init__(self, parent) 155 wx.Panel.__init__(self, parent)
145 self.sizer = wx.FlexGridSizer(cols=2) 156 self.sizer = wx.FlexGridSizer(cols=2)
146 self.sizer.AddGrowableCol(1) #The growable column need most of time to be the right one in pairs 157 self.sizer.AddGrowableCol(1) #The growable column need most of time to be the right one in pairs
147 self.SetSizer(self.sizer) 158 self.SetSizer(self.sizer)
148 159