[wxPython-users] Dynamic Resizing and Centering Image.

Christopher Barker Chris.Barker at noaa.gov
Sun Jan 20 12:22:48 PST 2008


mkey wrote:
> "If I want to re-scaling images, is it OK to bind EVT_SIZE handler or not?"

Yes, if you want to re-scale when the Window changes size, than an
EVT_SIZE handler tis the place to do it.

the confused steamed from the fact that you added about "Centering" not
re-sizing, and the sample I sent did not re-size.

Take a look at that code, thought as it seems likely that you'd want to
maintain the aspect ratio when you re-size the image -- which the
EVT_SIZE handler you sent did not do.

-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