Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Apr 19th, 2008, 11:28 AM   #11
ericgrave
Newbie
 
Join Date: Apr 2008
Posts: 9
Rep Power: 0 ericgrave is on a distinguished road
Re: help!!

yeah it just prints a blank line but in my book i got which is about game programming it said somethin about going into the files and findin a colorviewer or something when i did that i couldnt find it anywhere
ericgrave is offline   Reply With Quote
Old Apr 19th, 2008, 1:35 PM   #12
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,827
Rep Power: 5 Sane will become famous soon enough
Re: help!!

Okay. So your Pygame is fine. And should work properly as long as dir(pygame) shows the expected list of functions (you still haven't said whether or not you've done this).

colorviewer.py is just a basic Python script for testing Pygame. You don't need to run it. It's just a suggestion in case you're worried that Pygame won't work on your computer.
Sane is offline   Reply With Quote
Old Apr 19th, 2008, 2:05 PM   #13
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 169
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: help!!

Sane wuick question, since where in this subject of Pygame. When i create a basic window it will not close properly even after the main operational while loop has ended...it just crashes any ideas?
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote
Old Apr 19th, 2008, 3:07 PM   #14
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,827
Rep Power: 5 Sane will become famous soon enough
Re: help!!

The Pygame Documentation is a great reference. pygame.display.quit() will uninitialize the Pygame window. If you're running your program from IDLE, this call is necessary for the window to properly close. If you are running it via python.exe (by double clicking the .py file), the window should close without unitializing the display module. However, it's still best to call pygame.display.quit().
Sane is offline   Reply With Quote
Old Apr 19th, 2008, 3:08 PM   #15
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 169
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: help!!

ah thanks sane, i guessed i would be after something like that i just couldnb't find it lol. My searching skills are poor aparently thanks alot

Cheers,
Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris 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 10:04 AM.

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