Skip to main content

Thread: wxPython - sizer issue?


hi all,
have class inherited wx.frame.
in have placed wx.panel , sizers:

code:
        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)
the mainsizer has static text @ top , the
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

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support