title: How to open camera with pygame in Windows?
body: <p>I want to open the camera with Python using the pygame module on a Windows 7 machine, but it's not working.  I have previously used <code>"/dev/video0"</code> which is the read device in Linux. The pygame documentation just shows how to open a camera device in Linux. I am using pygame version 1.9.1 and Python 2.7.</p>
  
  <p>How can I open the camera on a Windows device?  When I try my existing script, the error I get is:</p>
  
  <pre><code>File "E:/test_python/open_cam2.py", line 10, in &lt;module&gt;
      cam = pygame.camera.Camera("/dev/video0", (640, 480))
  File "C:\Python27\lib\site-packages\pygame_camera_vidcapture.py", line 47, in init
      self.dev = vidcap.new_Dev(device, show_video_window)
  TypeError: an integer is required
  </code></pre>