Thread: wxPython - sizer issue?
hi all,
have class inherited wx.frame.
in have placed wx.panel , sizers:
the mainsizer has static text @ top , thecode:self.mainsizer = wx.boxsizer(wx.vertical) self.maindisplaysizer = wx.boxsizer(wx.horizontal) self.grid = wx.gridsizer(10,2,10,5) self.buttonsizer = wx.boxsizer(wx.vertical)
maindisplaysizer.
inside maindisplaysizer have added statictext 'left
margin' i've added self.grid, statictext an
'inside margin' , buttonsizer.
looks fine in terms of layout issues are:
1. frame open @ correct size fit of
contents nicely without setting size explicitly in the
__init__ method.
2. also, if explicitly set size, resizing do
doesn't affect of widgets.
under impression reading i've been doing on various
sites point of me using sizers widgets' size
adapt window resizing. figure not using them quite
correctly haven't been able figure out i'm doing.
ideas?
in advance
aaron
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk wxPython - sizer issue?
Ubuntu
Comments
Post a Comment