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

Re: [pygame] pygame.QUIT event



Hi
In Fullscreen mode:

Short answer: no

long answer:
the only thing you could do in fullscreen mode is to handle an event (like keypress) such way that pygame.QUIT is put on the event queue. I dont know any other way to make it happen in fullscreen mode.


~DR0ID


Farai Aschwanden schrieb:
I would say: By default: no
But there is still a Task Manager to kill an application in any case what you surely know too. What is your main intention of your topic?



Am 08.10.2006 um 22:02 schrieb Jacob Hartline:


On 10/8/06, *Farai Aschwanden* <fash@xxxxxxxxxx <mailto:fash@xxxxxxxxxx>> wrote:


    I dont know on what your question is based on. Do you want to control
    an exit?


Of course. What if my app is run in fullscreen mode? Can the user do something to make pygame.QUIT happen in that situation?


By default and no windowed programs you can use: sys.exit() (dont
forget: import sys ) to quit the application.



Sure, dude. I already know how to program in Python. ;)