[wxPython-users] Freeze() and Thaw()

Christopher Barker Chris.Barker at noaa.gov
Thu Oct 4 16:50:46 PDT 2007


Bob Klahn wrote:
> As I said, the problem is occurring during the building and layout of 
> the initial display.  I.e., the freeze and the thaw are part of my main 
> frame's ___init___ code.

That may be your problem -- during __init__, your frame may not be at 
it's final size, so all the layout needs to be re-done after the Frame 
gets Show()'d. When is Frame.Show() called in this process?

You might be able to do something by catching the EVT_SIZE, and doing 
your layout there, with Freeze in place.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list