Dynamic Resizing and Centering Image.

maybe this will help.

There's some "bleed" on the frame bottom: a previous picture doesn't vanish completely.

not on my system:

OS-X 10.4.11PPC
Python2.5
wxPython 2.8.7

What are you running?

I've enclosed a slightly modified version -- the old one had a bug on 2.8 -- I had an attribute "MaxSize" that interfierd with the new wxPython properties.

Here is a fixed version.

-Chris

StaticBitmap.py (2.63 KB)

···

--
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@noaa.gov