Skip to content

Instantly share code, notes, and snippets.

@dauuricus
Created December 18, 2019 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dauuricus/cc7aac5b6fe3b0b934484d5df9d728c6 to your computer and use it in GitHub Desktop.
Save dauuricus/cc7aac5b6fe3b0b934484d5df9d728c6 to your computer and use it in GitHub Desktop.
import pygame, sys
from pygame.locals import *
pygame.init()
DISPLAYSURF = pygame.display.set_mode((400,300))
pygame.display.set_caption('Hello world')
while True:
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()
pygame.display.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment