import pygame


class Screen(object):

    def __init__(self, size):
        self.size = size
        self.screen = None
        self.surface = pygame.Surface(self.size)

    def eventHandle(self):
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                return 1
            elif event.type == pygame.KEYDOWN:
                return self.eventKeyDown(event.key)
        return 0

1703847687cde5844b5ebc097cb4292c810c07b8
<mask token>


class Screen(object):
    <mask token>
    <mask token>

<mask token>


class Screen(object):

    def __init__(self, size):
        self.size = size
        self.screen = None
        self.surface = pygame.Surface(self.size)
    <mask token>

<mask token>


class Screen(object):

    def __init__(self, size):
        self.size = size
        self.screen = None
        self.surface = pygame.Surface(self.size)

    def eventHandle(self):
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                return 1
            elif event.type == pygame.KEYDOWN:
                return self.eventKeyDown(event.key)
        return 0

import pygame


class Screen(object):

    def __init__(self, size):
        self.size = size
        self.screen = None
        self.surface = pygame.Surface(self.size)

    def eventHandle(self):
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                return 1
            elif event.type == pygame.KEYDOWN:
                return self.eventKeyDown(event.key)
        return 0
