wxPython fast and slow

Mike Driscoll kyosohma at gmail.com
Fri Mar 6 11:52:00 EST 2009


On Mar 6, 8:41 am, iu2 <isra... at elbit.co.il> wrote:
> Hi guys,
>
> Can you please help me with this:
> I wrote a little game in wxPython where I move small panels (showing
> bitmaps (100 x 100)) on the screen.
>
> This is similar to the code I wrote:
>
> for i in xrange(1, steps + 1):
>     my_panel.SetPosition(...)
>     time.sleep(0.1 / steps)
>
> I use PyScripter (Windows) for writing the application. While
> PyScripter is active, the panels move quickly. But when I exit
> PyScripter and execute the script from the explorer or the command
> line, the panels move very slowly.
>
> Do you have any idea of what is going wrong?
> Thank you very much
>
> iu2

Can you post a sample application so we can try to figure out what's
wrong? You might also cross-post this to the wxPython mailing list.
They might know.

Mike



More information about the Python-list mailing list