Sep-24-2017, 12:15 PM
Hey Programmers...
I try to set up an screen with pygame, but i get an error. I want to learn pyGame and pyOpenGL
to write my own software, but this is an test to settup an screen...
My Script:
I find it more difficult...
Can anyone help me, only for setup an screen ?... I want to learn it... i get pyGame
installed from PIP, Windows 7. I use python 3.6.2... This is an little test with pyGame.
Thanks for help, Jamie.
I try to set up an screen with pygame, but i get an error. I want to learn pyGame and pyOpenGL
to write my own software, but this is an test to settup an screen...
My Script:
import pygame # Set the Screen: pygame.init() screen = pygame.display.set_mode(640, 480) screen.fill(0, 0, 0) pygame.display.flip() # Quit Program: pygame.event.pump() if(pygame.key.get_pressed(K_ESCAPE)): quit()The Error:
Error:Traceback (most recent call last):
File "C:\Users\Gebruiker\Desktop\GameTest.py", line 5, in <module>
screen = pygame.display.set_mode(640, 480)
TypeError: argument 1 must be 2-item sequence, not int
What do i bad ?... Can anyone help me about how i can create an screen in pyGame ?...I find it more difficult...
Can anyone help me, only for setup an screen ?... I want to learn it... i get pyGame
installed from PIP, Windows 7. I use python 3.6.2... This is an little test with pyGame.
Thanks for help, Jamie.