On Mar 2, 2007, at 1:06 PM, Kelie wrote:
> what did i do wrong in the code below? i wanted to show a label, a
> button on a form, but they're not shown when form is displayed. i
> guess the error is in the sizers.
You guessed right. You added a panel to the form, but didn't add the
panel to the form's sizer. Therefore, when you called self.layout()
later on, there was nothing to size.
Adding self.Sizer.append1x(pnl) right after the panel is created
will make all the difference. I might also remove the call to
fitToSizer(), as that messes up the original size you specified for
the form.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users