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

Re: [pygame] font initialization error



On 10/11/07, AlgoMantra <algomantra@xxxxxxxxx> wrote:
> I'm using this to close the Pygame window, but it always sort of hangs
> and then a pop up saying "this program is not responding".
> "pythonw.exe nonresponsive" etc. Why is it this way?
If you open with "edit with IDLE" and use F5, the program will crash
on exiting.  Does this problem occur when you double-click on the
program's icon in a finder window?
> And the "text" in each case has to be new, that is a new value.
> But my current code is just rewriting the text on top of the old value,
> creating a mess. Is there a way to refresh this?
There is no way to "delete" something you've drawn on the screen.  To
completely refresh the screen, use "surface.fill(#background colour)"
before you draw anything.  I'm not sure if that's your problem though.
 Could you be more specific?
Ian