pygame full screen help

Thread Solved

Join Date: Jun 2005
Posts: 6
Reputation: TheSkunkMan is an unknown quantity at this point 
Solved Threads: 0
TheSkunkMan TheSkunkMan is offline Offline
Newbie Poster

pygame full screen help

 
0
  #1
Jun 23rd, 2005
I've playing with pygame a little and reading about it and i tried to make a simple rock paper scrissors game. I can't seem to get fullscreen working. Everything i've tried or read didnt work. Can u please help me? thanks
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,947
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 914
Moderator
vegaseat's Avatar
vegaseat vegaseat is online now Online
DaniWeb's Hypocrite

Re: pygame full screen help

 
0
  #2
Jun 24th, 2005
I need some idea what you have done so far, so I can help!
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 6
Reputation: TheSkunkMan is an unknown quantity at this point 
Solved Threads: 0
TheSkunkMan TheSkunkMan is offline Offline
Newbie Poster

Re: pygame full screen help

 
0
  #3
Jul 10th, 2005
All im trying to do is get a blank full screen. I don't really need it i was just wondering how u do it.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,947
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 914
Moderator
vegaseat's Avatar
vegaseat vegaseat is online now Online
DaniWeb's Hypocrite

Re: pygame full screen help

 
0
  #4
Jul 17th, 2005
I used to play around with SDL in my C++ days. PyGame is based on SDL. I know in C++ you can use something like ...
[php]SDL_Surface *screen;

screen = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE | SDL_RESIZABLE);
[/php]This should have carried over to PyGame. You might use something like this ...
[php]
import pygame

pygame.init()
# change to whatever your full screen size might be
size = width, height = 800, 600
screen = pygame.display.set_mode(size)

[/php]
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 8
Reputation: zauber is an unknown quantity at this point 
Solved Threads: 1
zauber zauber is offline Offline
Newbie Poster

Re: pygame full screen help

 
0
  #5
Jul 30th, 2005
in pygame it's:

import pygame
from pygame.locals import * #need this for 'FULLSCREEN' value
pygame.init()
WIDTH=800
HEIGHT=600
pygame.display.set_mode((WIDTH,HEIGHT),FULLSCREEN)

also - make sure you include code to quit the app or you won't get out. (ev.type==QUIT doesnt work in fullscreen, and locked up my mac, win or linux may be different)
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC