[wxPython-users] Animation question

Andrea Gavana andrea.gavana at gmail.com
Mon Apr 2 03:32:30 PDT 2007


On 4/2/07, Luca Politti wrote:
> Andrea Gavana ha scritto:
> > 1) Try FloatCanvas: wx.lib.floatcanvas
> Do you think this could be work better?

It will, FloatCanvas is extremely well optimized for those things.

> > 2) Are you using wx.BufferedPaintDC() together with an empty
> > wx.EVT_ERASE_BACKGROUND?
> Yes, I'm using BufferedDC but not wx.EVT_ERASE_BACKGROUND.

You should. It helps quite a lot with flickering.

> > 3) If you post some code, I am sure some DC guru can help you.
> >
> I simply use a wx.Bitmap and a wxDC.SetUserScale for the zoom... 30 or
> 40 code lines..

This just *enforce* the fact that you should post your code. I believe
Robin has written it 10000 times till now: "please make a small
runnable sample that we can test".


Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/




More information about the wxpython-users mailing list