title: How to draw a circle in PyGame?
body: <p>Hi I am having a problem with drawing a circle <code>ERROR: module object has no attribute 'circle'</code>. what am I doing wrong?</p>
  <p>And also how can I put numbers in circles?</p>
  <p>For example: (first click is circle with 0 second is circle with 1 and so on)</p>
  <pre><code>import pygame
  
  WHITE =     (255, 255, 255)
  BLUE =      (  0,   0, 255)
  GREEN =     (  0, 255,   0)
  RED =       (255,   0,   0)
  TEXTCOLOR = (  0,   0,  0)
  (width, height) = (200, 300)
  
  running = True
  
  def main():
      global running, screen
      
      pygame.init()
      screen = pygame.display.set_mode((width, height))
      pygame.display.set_caption(&quot;TUFF&quot;)
      screen.fill(background_color)
      pygame.display.update()
      
      while running:
          ev = pygame.event.get()
  
          for event in ev:
              if event.type == pygame.MOUSEBUTTONUP:
                  draw_circle()
                  pygame.display.update()
  
              if event.type == pygame.QUIT:
                  running = False
  
  def get_pos():
      pos = pygame.mouse.get_pos()
      return (pos)
  
  def draw_circle():
      pos=get_pos()
      pygame.draw.circle(screen, BLUE, pos, 20)
  
  
  if __name__ == '__main__':
      main()
  </code></pre>