That's just a false-positive, an error that slipped when I copy-pasted, so that's not the problem I'm afraid just added that but it doesn't seem to change much. ANyways, thanks for the input guys!
#initial conditions playing = False paused = True ... #This is where it doesn't work def pauseSong(): print "TEST" #This gets printed if playing == True: pygame.mixer.pause() #This *should* pause the song print "paused" # This doesn't get printed :( paused = True if playing == False: pygame.mixer.unpause() pause = False ...
#Starts the playback of the song def startSong(): print "Song Stared" playing = True # This changes the initial conditions paused = False print playing song.play() time.sleep(.1)