79666860

Date: 2025-06-15 20:52:41
Score: 0.5
Natty:
Report link

The solution to this problem has been given in the comments. I used pygame's set_endevent module to send an event when the song is finished, which allowed me not to use sleep. This is what the code looks like now:

        mixer.music.load(self.current_song)
        mixer.music.play()
        mixer.music.set_endevent(USEREVENT+1)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nathan Vidal