title: How do I maximize the display screen in PyGame?
body: <p>I am new to Python programming and I recently started working with the PyGame module. Here is a simple piece of code to initialize a display screen. My question is : Currently, the maximize button is disabled and I cannot resize the screen. How do I enable it to switch between full screen and back?
  Thanks</p>
  
  <pre><code>import pygame, sys
  from pygame.locals import *
  
  pygame.init()
  
  #Create a displace surface object
  DISPLAYSURF = pygame.display.set_mode((400, 300))
  
  mainLoop = True
  
  while mainLoop:
      for event in pygame.event.get():
          if event.type == pygame.QUIT:
              mainLoop = False
      pygame.display.update()
  
  pygame.quit()
  </code></pre>