944,161 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 6113
  • Python RSS
Jun 23rd, 2005
0

pygame full screen help

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
TheSkunkMan is offline Offline
6 posts
since Jun 2005
Jun 24th, 2005
0

Re: pygame full screen help

I need some idea what you have done so far, so I can help!
Moderator
Reputation Points: 1333
Solved Threads: 1404
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Jul 10th, 2005
0

Re: pygame full screen help

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
TheSkunkMan is offline Offline
6 posts
since Jun 2005
Jul 17th, 2005
0

Re: pygame full screen help

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]
Moderator
Reputation Points: 1333
Solved Threads: 1404
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Jul 30th, 2005
0

Re: pygame full screen help

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)
Reputation Points: 10
Solved Threads: 1
Newbie Poster
zauber is offline Offline
8 posts
since Jul 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Books,Books,Books
Next Thread in Python Forum Timeline: mandelbrot generator messed up





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC