Pygame window displays blank black screen
17:03 23 Dec 2015

Here is my code, please keep in mind that I picked up python a couple of days ago so my code may be incorrectly made, ect. I am trying to make a window that will display some text (beta) and will display two small rectangles that I want to make into buttons.

import sys
import pygame
from pygame.locals import *
pygame.init()

size = width, height = 720, 480
speed = [2, 2]
black = (0,0,0)
blue = (0,0,255)
green = (0,255,0)
red = (255,0,0)

screen = pygame.display.set_mode(size)
screen.fill((blue))

pygame.display.set_caption("BETA::00.0.1")

clock = pygame.time.Clock()

def game_intro():

  intro = True

  while intro:
     for event in pygame.event.get():
         print(event)
         if event.type == pygame.QUIT:
             pygame.quit()
             quit()

    gameDisplay.fill(blue)
    largeText = pygame.font.Font('freesansbold.ttf',115)
    TextSurf, TextRect = text_objects("BETA", largeText)
    TextRect.center = ((display_width/2),(display_height/2))
    gameDisplay.blit(TextSurf, TextRect)

    pygame.draw.rect(gameDisplay, green,(150,450,100,50))
    pygame.draw.rect(gameDisplay, red,(550,450,100,50))

    pygame.display.flip(screen)
    pygame.display.update(screen)
    clock.tick(15)
python pygame