title: why wont python pygame wont work in spyder?
body: <p>I recently downloaded pygame on my school pc(I have experience with it before), but when I try to open a window it does not work and are black even though I colored the window in the code.</p>
  
  <p>I even copied this code:</p>
  
  <pre><code>import pygame
  background_colour = (255,255,255)
  (width, height) = (300, 200)
  screen = pygame.display.set_mode((width, height))
  pygame.display.set_caption('Tutorial 1')
  screen.fill(background_colour)
  pygame.display.flip()
  running = True
  while running:
    for event in pygame.event.get():
      if event.type == pygame.QUIT:
        running = False
  </code></pre>
  
  <p>But it does the same thing.</p>
  
  <p>Extra:</p>
  
  <p>I use Spyder with python 3.6</p>
  
  <p>Thanks in advance:)</p>