SFML community forums

Bindings - other languages => Python => Topic started by: nbermudez on January 30, 2013, 01:38:21 am

Title: Command Prompt raises when I run my game
Post by: nbermudez on January 30, 2013, 01:38:21 am
Greetings!
I've been creating a game using python 2.7 + PySFML 1.6 for my first time.
I don't know if I'm doing something wrong but when I run my main script the game renderWindow raises as spected but so does it a command prompt (readonly).
At some point I want to distribute this little game and I don't want that prompt to pop up! Any way to do that?

I use IDLE for Windows to write my python code.

Thanks in advance for your help!
Title: Re: Command Prompt raises when I run my game
Post by: shackra on January 31, 2013, 02:21:12 am
append an "w" to your filename's extension, so it becomes ".pyw".

you can also use pyinstaller (http://www.pyinstaller.org/) to create "binaries" of your projects for both GNU/Linux and Windows.
Title: Re: Command Prompt raises when I run my game
Post by: nbermudez on February 02, 2013, 01:16:47 am
Thanks! I was thinking in using pyinstaller once I finish the game, during testings I had no idea what to do.
Thank you again :)