screens/main_menu_screen.py
def run_event(self):
        """ Run the event on the main screen """
        for event in pygame.event.get():
            if event.type == QUIT:
                self.hub.exit_game()
            if event.type == KEYDOWN:
                if event.key == K_ESCAPE:
                    self.hub.exit_game()
            if event.type == MOUSEBUTTONDOWN:
                mouse_x, mouse_y = pygame.mouse.get_pos()
                self.check_button_clicked(mouse_x, mouse_y)
 Run the event on the main screen 
Run the event on the main screen
Run the event on the main screen
def run_event(self):
        for event in pygame.event.get():
            if event.type == QUIT:
                self.hub.exit_game()
            if event.type == KEYDOWN:
                if event.key == K_ESCAPE:
                    self.hub.exit_game()
            if event.type == MOUSEBUTTONDOWN:
                mouse_x, mouse_y = pygame.mouse.get_pos()
                self.check_button_clicked(mouse_x, mouse_y)
def run_event ( self ) : for event in pygame . event . get ( ) : if event . type == QUIT : self . hub . exit_game ( ) if event . type == KEYDOWN : if event . key == K_ESCAPE : self . hub . exit_game ( ) if event . type == MOUSEBUTTONDOWN : mouse_x , mouse_y = pygame . mouse . get_pos ( ) self . check_button_clicked ( mouse_x , mouse_y )
Run the event on the main screen
Run the event on the main screen
""" Run the event on the main screen """
self