[wxPython-users] Alignment of widgets in GridBagSizer cells...

Ajay J Deshpande adeshpande at zeomega.com
Mon Sep 11 06:37:17 PDT 2006


aah ok ... i got it robin ... thanks a lot ...
thanks & regards,
-ajay

Robin Dunn wrote:

> Ajay J Deshpande wrote:
>
>> Hi everyone:
>>    I have a wxGridBagSizer in a wxPanel with growable rows and 
>> columns. I have other widgets like combos and statictextboxes in 
>> these cells, which I need to align in their respective cells of the 
>> gridbagsizer ... how do I do this ...
>
>
> Pass the desired alignment flags in the flags parameter of the Add 
> method.  For example:
>
>     self.ssiz.Add(self.label1, (1,3),
>         flags=wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_RIGHT)
>
>

-- 
Ajay J. Deshpande
Software Engineer
ZeOmega "Open Minds' Open Solutions"
adeshpande at zeomega dot com
www.zeomega.com





More information about the wxpython-users mailing list