Feb-07-2018, 01:21 AM
Feb-07-2018, 01:29 AM
1. Use code tags.
2. show error.
3. is 21.lnk in the same folder ?
2. show error.
3. is 21.lnk in the same folder ?
Feb-09-2018, 02:28 AM
yes, 21.ink in paste
Feb-09-2018, 05:13 AM
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
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')
Feb-19-2018, 11:01 PM
(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')
Super useful, thanks!