开发者

Closing Pygame games made with PyScripter in Portable Python closes PyScripter too

开发者 https://www.devze.com 2023-01-29 10:47 出处:网络
I am using Portable Python to to some PyGame development because it has PyGame and PyScripter built in so there was minimal setup.

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 Window开发者_C百科s "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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号