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

Re: [pygame] screen not being refreshed



On Mon, 30 Jun 2003, Pete Shinners wrote:

> Lee Harr wrote:
> > I recently started using KDE and now I notice that when working
> > with pygame interactively the window does not get redrawn after
> > it has been covered and then re-exposed.  This did not happen
> > with my past window managers (qlwm, twm).
> 
> ah, wait!
> i just noticed the "interactively" part. pygame can be a little picky 
> from the interactive interpreter. i assume the other window managers 
> worked because of 'backing store' and the templated window moves.
> 
> calling "pygame.event.pump()" while at the prompt should trigger SDL to 
> handle the redraw events waiting in its window queue.
> 
> 

I find I need to pygame.event.pump() under windows as well, should I not 
have to? if I want updates after a reveal without me redrawing, that is.

This is a slight problem since I cannot currently get my mixture of pygame 
and wxpython to allow me to call pump, as it locks up randomly - I assume 
pygame and wxpython are fighting over windows messages and pygame looses.
Other than that it works great, and I can in my application live without 
the redraws (windows is rarely covered).

Regards,
Stuart W.