title: How to single click and turn to another page in Pygame?
body: <p>So I'm writing this code for a school assignment, which I'm supposed to use pygame and display some text. I put those text in different pages, and if single click the screen, it will show the next screen. </p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>import pygame
  
  pygame.init()
  pygame.font.init()
  # defining the screen
  SIZE = (1000, 700)
  screen = pygame.display.set_mode(SIZE)
  # define time
  clock = pygame.time.Clock()
  #define button
  button = 0
  # define font
  fontIntro = pygame.font.SysFont("Times New Roman",30)
  # define draw scene
  def drawIntro(screen):
      #start
      if button &gt; 0:
          screen.fill((0, 0, 0))
          text = fontIntro.render("Sigle click to start", 1, (255,255,255))
          screen.blit(text, (300, 300, 500, 500))
          pygame.display.flip() 
  
      #page1
      if button == 1:
          screen.fill((0, 0, 0))
          text = fontIntro.render("page 1", True, (255, 255, 255))
          pygame.display.flip()
      #page2
      if button == 1:
          screen.fill((0, 0, 0))
          text = fontIntro.render("page 2", True, (255, 255, 255))
          screen.blit(text, (300,220,500,200))
          pygame.display.flip()
      #page3
      if button == 1:
          screen.fill((0, 0, 0))
          text = fontIntro.render("page3", True, (255, 255, 255))
          screen.blit(text, (200,190,500,200))
          pygame.display.flip()
  
  
  running = True
  while running:
      for evnt in pygame.event.get():
          if evnt.type == pygame.QUIT:
              running = False
          if evnt.type == pygame.MOUSEMOTION:
              mx,my = evnt.pos
              print(evnt.pos)
              drawIntro(screen)
  
  pygame.quit()
  </code></pre>
  
  <p>Though it is not working, can someone please help?! Thanks!</p>