Alec Bennett wrote:
I'm wondering what the best practice for avoiding flicker is?
How are you changing the image? without knowing that, we can't really help:
http://wiki.wxpython.org/MakingSampleApps
in the meantime, you may need to catch EVT_ERASE_BACKGROUND, and bind it to a do-nothing handler:
(untested)
self.Bind(wx.EVT_ERASE_BACKGROUND, lambda evt: None)
I
thought about drawing the next image in the background, and then
hiding the topmost image, and cycling through 3 or 4 bitmap widgets
in this manner?
That won't help, those layers aren't stored anyway, each time you hide/show, it's have to re-draw anyway.
-Chris
ยทยทยท
--
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