Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- #define maine function:
- def main():
- pygame.init()
- logo = pygame.image.load("logo32x32.png")
- pygame.display.set_icon(logo)
- pygame.display.set_caption("minimal program")
- screen = pygame.display.set_mode((240,180))
- running = True
- while running:
- for event in pygame.event.get():
- if event.type == pygame.QUIT:
- running = False
- if __name__ =="__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement