[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Doing the pygame shuffle on Windows.
Just for the group's information. I finally got around the problem. I'm
not sure exactly what it was, but how you call an application from
pygame makes all the difference. Originally I was launching the child
process with a straight call to it's dll. Instead I created a
completely separate application and launched it with os.popen. This
time pygame.event didn't hang on pump.
one more bug nailed in the fight to make pygame reign supreme...
Keith Nemitz
Mousechief Co.
www.mousechief.com
On Dec 20, 2004, at 6:10 PM, Keith Nemitz wrote:
I'm working on a fullscreen game that at one point drops into window
mode, launches another application, waits for it to finish, close,
be-done, etc, and then pop the game back into fullscreen mode.
The problem I'm having is, the game window refuses to pick up events
after the other app is finished.
I've tried:
setting grab to 0 before launching and setting grab to 1 after the
other app quits.
getting the current window before launching and setting it as the
active window after the other app quits. (from c++).
using toggle_fullscreen, and using display.set_mode
various combinations of the above
searching the internet and this list for clues, without luck.
All that I can thing of otherwise is to quit pygame and re-init it,
which would cost a of work to the rest of the game. Funny thing is, on
the Macintosh version, I couldn't stop the events from going to the
game window... sigh. (fixed that eventually)
Perhaps someone here can enlighten me? Please, I'm out of ideas.
I'll post my current code in my next email, should this problem find
some interest from the pygame community.
Keith Nemitz
Mousechief Co.