Advertisement
jabela

Simple Pygame Window

Dec 14th, 2015
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import pygame
  2. pygame.init()
  3. pygame.display.set_caption('Hello World!')
  4. window = pygame.display.set_mode((500, 400))
  5. running = True
  6. while running:
  7.     for event in pygame.event.get():
  8.         if event.type == pygame.QUIT:
  9.             running = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement