Pygame, how to show window without loop? no loop=popupand close...
Carl Banks
pavlovevidence at gmail.com
Sat Jun 28 02:32:00 EDT 2008
On Jun 27, 10:58 pm, defn noob <circularf... at yahoo.se> wrote:
> right. im an idiot anyway. i can just draw the lines before entering
> the loop, problem solved...
Do not do that; it'll create a busy loop and use 100% of CPU. Use
pygame.event.wait() instead. It waits for an event to occur, without
using CPU cycles.
Carl Banks
More information about the Python-list
mailing list