Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 4th, 2005, 9:16 AM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,819
Rep Power: 5 Sane will become famous soon enough
Pygame, two windows.

When I run something in pygame via python.exe (not IDLE) it keeps the MS-DOS command window open even if it doesn't have to do anything. Is there any way to make this second window not appear without destroying the Pygame window?

P.S. I still need a response about destroying the queue of buttons pressed.
Sane is offline   Reply With Quote
Old Jul 4th, 2005, 11:19 AM   #2
al1986
Newbie
 
Join Date: Feb 2005
Posts: 24
Rep Power: 0 al1986 is on a distinguished road
Change the file extensions from .py to .pyw, that should do it.
al1986 is offline   Reply With Quote
Old Jul 4th, 2005, 6:18 PM   #3
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
P.S. I still need a response about destroying the queue of buttons pressed.
eh?

(spam filter avoidance text...)
Cerulean is offline   Reply With Quote
Old Jul 6th, 2005, 12:14 AM   #4
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,819
Rep Power: 5 Sane will become famous soon enough
al1986: That was a really good suggestion, but it doesn't seem to be working. hmmm. Do you think when it's compiled as an exe will it have two windows?
Sane is offline   Reply With Quote
Old Jul 6th, 2005, 5:56 AM   #5
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Do you think when it's compiled as an exe will it have two windows?
py2exe specifically has an option to disable the terminal, so you're good there.
Cerulean is offline   Reply With Quote
Old Jul 6th, 2005, 6:05 AM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,819
Rep Power: 5 Sane will become famous soon enough
Sweet, I'll bother about trying to get py2exe working later I guess though. We really need something better. x_x Thanks.
Sane is offline   Reply With Quote
Old Jul 6th, 2005, 11:06 AM   #7
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

Quote:
Originally Posted by al1986
Change the file extensions from .py to .pyw, that should do it.
Not quite that easy, the program has to be a GUI and has to be run via Pythonw.exe.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:53 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC