sizers and layouting problem

I have lots of windows like that. I just make all the labels the same fixed
size, large enough,
  self.label_1.SetMinSize((150, 23)) #pixels
and align right
self.label_1 = wx.StaticText(self, -1, "Total Sale", style=wx.ALIGN_RIGHT)

Then if you SetLabel('Net Sale') at Runtime it will be aligned.

works perfectly. But I use glade to do all this

···

On Sunday 11 May 2008 13:20:34 Prashant Saxena wrote:

Dear Phillip,

Thanks for your kind reply. The real problem is the aligned labels.
Actually these seven controllers are for seven different types of variables
and UI will be created at run time using a file, where label name will
vary. I have tried different approaches like nesting sizers but at the end
it's just the labels giving me problem.