title: Tkinter not responding
body: <p>I am new to Python and to all programming at all so maybe it is obvious mistake.</p>
  
  <p>My graphic windows is not responding. This program is supposed to draw 10 pictures at random locations. Then it should ask for <code>dx</code> and <code>dy</code> over and over again, without end, which are numbers that should move my first popped picture. Pictures are there and it is asking for these two parameters but it is not responding and also when I insert them, nothing happens. I think the code should be right, but I am not sure. Thanks for responding :)</p>
  
  <p>Here is the code:</p>
  
  <pre><code>import tkinter
  c = tkinter.Canvas(width = 400,height = 400)
  c.pack()
  x1 = random.randrange(100, 400)
  y1 = random.randrange(100, 400)
  pic1 = tkinter.PhotoImage(file = 'images2-1.png')
  c.create_image(x1, y1, image = pic1)
  pic2 = tkinter.PhotoImage(file = 'images2-1.png')
  for i in range (0,9):
      x = random.randrange(100, 400)
      y = random.randrange(100, 400)
      c.create_image(x, y, image = pic2)
      c.update()    
  while 1:
      dx = int(input('zadaj dx: '))
      dy = int(input('zadaj dy: '))
      c.move(pic1, x1+dx, y1+dy)
      c.update()
  </code></pre>