Changing a wx.StaticBitmap in run-time

I've created a wx.StaticBitmap and added it to a sizer. Later I need
to update and change this bitmap according to user interaction, but I
cannot see how I change the image without adding a new image and mess
up the entire form.

Any clues?

···

--
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org

Thomas Weholt wrote:

I've created a wx.StaticBitmap and added it to a sizer. Later I need
to update and change this bitmap according to user interaction, but I
cannot see how I change the image without adding a new image and mess
up the entire form.

Any clues?

the enclosed sample should help you out.

-Chris

StaticBitmap.py (2.57 KB)

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (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