wxPython fast and slow

Almar Klein almar.klein at gmail.com
Fri Mar 6 09:53:49 EST 2009


That's weird. It might have to do with the main loop.
I am not familiar with pyscripter, but it might supply
a wx mainloop. However, if that is the case, I would
expect the app to run slower in pyscripter, not when
run without it...

So can you use wx interactively from pyscripter?
In other words, can you use the command line when
wx windows are active?

Cheers,
  Almar

2009/3/6 iu2 <israelu at elbit.co.il>

> 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
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090306/43b7427f/attachment-0001.html>


More information about the Python-list mailing list