title: Python OpenCV - waitKey(0) does not respond?
body: <p>I'm using opencv 2.4.7 on ubuntu 12.04. I'm programming with python and I have a problem when i run this script:</p>
  
  <pre><code>import cv2
  
  img = cv2.imread('347620923614738322_233985812.jpg')
  cv2.namedWindow("window")
  cv2.imshow("window", img)
  cv2.waitKey(0)
  </code></pre>
  
  <p>The problem is that the script doesn't stop when I close the image. I searched information about <code>waitKey</code> and I found that using <code>cv2.waitKey(0)</code> is correct. </p>
  
  <p>I don't understand, <strong>where is the problem?</strong></p>