done = False song_ended = pygame.USEREVENT + 1 while not done: for event in pygame.event.get(): if event.type == song_ended: print('The song ended')
(Feb-09-2018, 05:13 AM)metulburr Wrote: you need a main game loop to keep the script from reaching the end of the program. add all this after your code in the first post done = False song_ended = pygame.USEREVENT + 1 while not done: for event in pygame.event.get(): if event.type == song_ended: print('The song ended')