import pygame pygame.init() print_Message = pygame.USEREVENT + 0 pygame.time.set_timer(print_Message, 333) while 1 : for event in pygame.event.get(): if event.type == print_Message: print(":3")