#Created by Joseph Brason
#Blank Pygame 

import pygame, sys
from pygame.locals import *

pygame.init()

clock = pygame.time.Clock()

screenX = 1200
screenY = 720
screen = pygame.display.set_mode((screenX ,screenY))

windowTitle = "Blank Pygame window"
pygame.display.set_caption(windowTitle)

#COLOURS
black  = pygame.Color(  0,  0,  0)

def keyDetection():
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.event.post(pygame.event.Event(QUIT))
        print(event)

def mainLoop():
    keyDetection()
    pygame.display.flip()
    screen.fill(black)
    clock.tick(60)

    
while True:
    mainLoop()

0e9fe502cdcb0f40c58fe558d357169b69cdc19e
<mask token>


def keyDetection():
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.event.post(pygame.event.Event(QUIT))
        print(event)


def mainLoop():
    keyDetection()
    pygame.display.flip()
    screen.fill(black)
    clock.tick(60)


<mask token>

<mask token>
pygame.init()
<mask token>
pygame.display.set_caption(windowTitle)
<mask token>


def keyDetection():
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.event.post(pygame.event.Event(QUIT))
        print(event)


def mainLoop():
    keyDetection()
    pygame.display.flip()
    screen.fill(black)
    clock.tick(60)


while True:
    mainLoop()

<mask token>
pygame.init()
clock = pygame.time.Clock()
screenX = 1200
screenY = 720
screen = pygame.display.set_mode((screenX, screenY))
windowTitle = 'Blank Pygame window'
pygame.display.set_caption(windowTitle)
black = pygame.Color(0, 0, 0)


def keyDetection():
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.event.post(pygame.event.Event(QUIT))
        print(event)


def mainLoop():
    keyDetection()
    pygame.display.flip()
    screen.fill(black)
    clock.tick(60)


while True:
    mainLoop()

import pygame, sys
from pygame.locals import *
pygame.init()
clock = pygame.time.Clock()
screenX = 1200
screenY = 720
screen = pygame.display.set_mode((screenX, screenY))
windowTitle = 'Blank Pygame window'
pygame.display.set_caption(windowTitle)
black = pygame.Color(0, 0, 0)


def keyDetection():
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.event.post(pygame.event.Event(QUIT))
        print(event)


def mainLoop():
    keyDetection()
    pygame.display.flip()
    screen.fill(black)
    clock.tick(60)


while True:
    mainLoop()

#Created by Joseph Brason
#Blank Pygame 

import pygame, sys
from pygame.locals import *

pygame.init()

clock = pygame.time.Clock()

screenX = 1200
screenY = 720
screen = pygame.display.set_mode((screenX ,screenY))

windowTitle = "Blank Pygame window"
pygame.display.set_caption(windowTitle)

#COLOURS
black  = pygame.Color(  0,  0,  0)

def keyDetection():
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.event.post(pygame.event.Event(QUIT))
        print(event)

def mainLoop():
    keyDetection()
    pygame.display.flip()
    screen.fill(black)
    clock.tick(60)

    
while True:
    mainLoop()
