Guest User

Example first Window

a guest
Dec 5th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import pygame
  3.  
  4. def main():
  5.     pygame.init()
  6.     pygame.display.set_mode([300,300])
  7.     pygame.display.set_caption("LOL")
  8.     salir = False
  9.     #loop principal
  10.     while salir != True:
  11.         for event in pygame.event.get():
  12.             if event.type == pygame.QUIT:
  13.                 salir = True
  14.        
  15.         pygame.display.update()
  16.  
  17.     pygame.quit()    
  18. main()
Advertisement
Add Comment
Please, Sign In to add comment