Advertisement
PhilipCander

Untitled

Oct 20th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import pygame
  2.  
  3. class mainWindow(object):
  4. def __init__(self, width, height, kastenW, kastenH, color):
  5. self.width = width
  6. self.height = height
  7. self.kastenW = kastenW
  8. self.kastenH = kastenH
  9. self.color = color
  10.  
  11. def run(self):
  12. window = pygame.display.set_mode((self.width, self.height))
  13. window.fill((0, 0, 0))
  14. pygame.draw.rect(window, self.color, (10, 10, self.kastenW, self.kastenH))
  15. pygame.display.update()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement