[wxPython] The impossible sizers of doom

Hey Thanks!

Though you weren't responding to me, This helps me out with a couple of the
problems I was having. Namely eliminating the memory leaks I was
experiencing, and setting it so that my buttons were arranged correctly!

Thanks again,

~Israel~

···

-----Original Message-----
From: Jeff Shannon [mailto:jeff@ccvcorp.com]
Sent: 25 February 2002 10:18 AM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] The impossible sizers of doom

Michael Gilfix wrote:

        sizer.Fit (frame)
        frame.SetSizer (sizer)
        frame.SetAutoLayout (true)

I think that your problem may be here -- you're asking the sizer to Fit()
itself before you've assigned it to the frame, and before you've told the
frame to AutoLayout(). Try moving the Fit() call to *after* the other
two, and see if that helps.

Jeff Shannon
Technician/Programmer
Credit International

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users