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

Robin Dunn robin at alldunn.com
Thu Sep 7 09:35:00 PDT 2006


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)


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list