All,
I have drawn an image in the device context using python, and i want to
move it somothly/animate either vertically or horizontally? What is the best algorithm should i use?
Paul
···
–
There are only 10 types of people in the world: Those who understand binary, and those who don’t.
Paul Gathogo wrote:
I have drawn an image in the device context using python, and i want to move it somothly/animate either vertically or horizontally? What is the best algorithm should i use?
It depends a bit on how complicated your drawing is, but in essence, you want to use a wx.Timer, and draw the image at difference coordinates in the timer event handler. You may also want to double buffer:
http://wiki.wxpython.org/DoubleBufferedDrawing
-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