title: How to move a circle again after being idle for 3 seconds?
body: <p>I'm currently creating a program where a circle will move to the left, stay for 3 seconds, and then move to the right of the screen. However, when trying to implement this solution there: <a href="https://stackoverflow.com/questions/24109410/in-pygame-how-to-move-an-image-every-3-seconds-without-using-the-sleep-function">In PyGame, how to move an image every 3 seconds without using the sleep function?</a>, it does not work. I would appreciate if somebody can tell me what am I doing.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>import pygame, sys, time, random
  from pygame.locals import *
  
  currentPosition = [300, 368]
  
  def moveLeft():
      currentPosition[0] -= 1
  
  def moveRight():
      currentPosition[0] += 1
  
  
  pygame.init()
  
  windowCalibration = pygame.display.set_mode((0,0))
  
  WHITE = (255, 255, 255)
  
  
  
  windowCalibration.fill(WHITE)
  
  pygame.display.set_caption("Eye calibration")
  pygame.draw.circle(windowCalibration, (0,0,0), currentPosition, 10)
  done = False
  
  circleIsIdle = True
  
  clock = pygame.time.Clock()
  
  time_counter = 0
  
  def stopCircle():
      circleIsIdle = True
      while circleIsIdle:
          time_counter = clock.tick()
          if time_counter &gt; 3000:
              time_counter = 0
              circleIsIdle = False
  
  while not done:
      for event in pygame.event.get():
          if event.type == pygame.QUIT:
              done = True
          if event.type == pygame.KEYDOWN:
              if event.key == pygame.K_ESCAPE:
                  done = True
      while currentPosition[0] &gt;= 10:
          moveLeft()
          windowCalibration.fill(WHITE)
          pygame.draw.circle(windowCalibration, (0,0,0), currentPosition, 10)
          pygame.display.update()
      stopCircle()
  
      while currentPosition[0] &lt;= 1350:
          moveRight()
          windowCalibration.fill(WHITE)
          pygame.draw.circle(windowCalibration, (0,0,0), currentPosition, 10)
          pygame.display.update()
      stopCircle()
      done = True        
  </code></pre>