title: TypeError: must be pygame.Surface, not tuple. Python/Pygame noobie
body: <p>Hello stack overflow users!</p>
  
  <p>I have written this code and it programs to draw lines whenever you click on the pygame screen, but when I run the program, I get an error message saying <code>"TypeError: must be pygame.Surface, not tuple."</code>.  I attempted to mess around with the program, but i had no luck.  I would greatly appreciate it if anyone can help me figure out what's wrong with the code.  Thanks! The code is on the bottom.  Thanks again! </p>
  
  <pre><code>import pygame
  pygame.init()
  
  pygame.display.set_mode((800,600), 0, 32)
  
  myWindow = ((800,600),0,32)
  color = (200,155,64)
  points = []
  
  while 1:
      for event in pygame.event.get():
          if event.type == pygame.QUIT:
              pygame.quit()
              sys.exit()
          if event.type == pygame.MOUSEBUTTONDOWN:
              points.append(event.pos)
          if len(points) &gt; 1:
              pygame.draw.line(myWindow, color, False, points, 5)
  
       pygame.display.update()
  </code></pre>