[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] App stops responding when minimized



use 

clock = pygame.time.Clock()
while 1:
	clock.tick(4)

That will make it run at 4fps

mike

On Tue, 2003-12-30 at 13:42, psymaster@caths.co.uk wrote:
> I coded a little slideshow for my own use and used pygame for the graphics
> drawing part. I noticed though that even thoug I use
> 
> pygame.time.wait(250)
> 
> in every iteration of the mainloop to keep the app from running faster
> than 4 fps it sometimes stops responding when it's minimized.
> 
> I check for events on every iteration so I don't know what's wrong.
> 
> 
> 
> And something else, does anybody know how can I make a pygame window
> "always on top" under windows without using external apps? I know it's OT.
>