wx.EXPAND only horizontal

Werner:

I think what you want is:
sz.Add(MyCtrl(self), proportion=1)

Actually, his example uses vertical sizers, and he wants horizontal
stretch.

c.buhtz@posteo.jp, change:

    sz.Add(MyCtrl(self), wx.EXPAND)

into:

    sz.Add(MyCtrl(self), 0, wx.EXPAND)

'flag' is the third parameter.

regards, Anders

···

********************************************************************************
Denne mail er blevet scannet af http://www.comendo.com og indeholder ikke virus!
********************************************************************************

good catch, thanks
Werner

···

On 4/1/2015 11:56, Anders Munch wrote:

Werner:

I think what you want is:
sz.Add(MyCtrl(self), proportion=1)

Actually, his example uses vertical sizers, and he wants horizontal
stretch.

c.buhtz@posteo.jp, change:

     sz.Add(MyCtrl(self), wx.EXPAND)

into:

     sz.Add(MyCtrl(self), 0, wx.EXPAND)

'flag' is the third parameter.

regards, Anders

Ah, thanks! My Python-understanding itself was the problem. :wink:

···

On 2015-04-01 09:56 Anders Munch <ajm@flonidan.dk> wrote:

'flag' is the third parameter.