Advertisement
TorroesPrime

paygame main

Aug 22nd, 2020
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import pygame
  2.  
  3. #define maine function:
  4. def main():
  5. pygame.init()
  6. logo = pygame.image.load("logo32x32.png")
  7. pygame.display.set_icon(logo)
  8. pygame.display.set_caption("minimal program")
  9. screen = pygame.display.set_mode((240,180))
  10. running = True
  11. while running:
  12. for event in pygame.event.get():
  13. if event.type == pygame.QUIT:
  14. running = False
  15.  
  16. if __name__ =="__main__":
  17. main()
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement