Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Command Prompt raises when I run my game  (Read 4373 times)

0 Members and 1 Guest are viewing this topic.

nbermudez

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Command Prompt raises when I run my game
« 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!

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
Re: Command Prompt raises when I run my game
« Reply #1 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 to create "binaries" of your projects for both GNU/Linux and Windows.

GNU User
Python programmer
Blog

nbermudez

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Command Prompt raises when I run my game
« Reply #2 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 :)