문제

I am using Portable Python to to some PyGame development because it has PyGame and PyScripter built in so there was minimal setup. I write the code, then press run and my game launches. When I close the game (by the Windows "X", not some in-game close button), PyScripter closes too.

Are they both part of the same process because they're portable?

Is there a way I can write games to not close pyscripter too?

Or should I set up regular pyscripter and add pygame to it manually?

Cheers

도움이 되었습니까?

해결책

You are running your game with PyScripter "Internal" engine. Thats why it closes PyScripter when you close your app. This is normal behavior of PyScripter but there is much more "run modes" you can use.

You can switch to use one of the Remote engines and then your app will run in "external" process. More info:

http://code.google.com/p/pyscripter/wiki/RemoteEngines

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top