A good way would be to use this:
http://www.pygame.org/docs/ref/display.html#pygame.display.quit

Try that in your code, then have a time.sleep call to see if the display is
shut down right.

-Tyler

On Sat, Jun 13, 2009 at 1:34 PM, [email protected] <
[email protected]> wrote:

> Hi
> I'm using Pygames version 1.8.1. release.
> Before debug PG source code, I would suggest you wait I debug mine ;-)
> I'm farm from being the best programmer...
> How do I delete the screen object ?
> Any code example ?
>
> Thanks,
> Pierre
>
> Tyler Laing wrote:
> > Well, the flags that work would be dependent on your what your
> > hardware supports. It sounds like you are not deleting the screen
> > object before exiting the program. If I have the time, I'll take a
> > look at the code later and see if I can identify the problem. What
> > version of pygame are you using?
> >
> > -Tyler
> >
> > On Sat, Jun 13, 2009 at 12:23 PM, [email protected]
> > <mailto:[email protected]> <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hi
> >     When application quit, display stay with last displayed image.
> >      Linux is
> >     running fine  (SSH works fine, we can reboot embedded computer) but
> >     display is kind of freeze.  We use function pygame.display.flip()
> when
> >     image need to be updated.  We dont use any flags for set_mode.  We
> >     tried
> >     couples, but generates errors.
> >
> >     Thanks
> >     Pierre
> >
> >     Ian Mallett wrote:
> >     > Look at the flags for pygame.display.set_mode() here,
> >     >
> http://www.pygame.org/docs/ref/display.html#pygame.display.set_mode,
> >     > or tell us more about what the problem is specifically,
> >     > Ian
> >
> >
> >
> >
> > --
> > Visit my blog at http://oddco.ca/zeroth/zblog
>
>


-- 
Visit my blog at http://oddco.ca/zeroth/zblog

Reply via email to