I'm working on Music player and when I play a new song I always call songInfoDisplay function. As you can see on the picture (link below) songs information are not displayed properly. Is there a way how to fix it? Thank you for your time and answers.
master = Tk()
def playSong():
song = lb.get(ACTIVE)
pathToSong = (path + "\\" + song)
mixer.music.load(pathToSong)
mixer.music.play()
audio = MP3(pathToSong)
songLength = int(audio.info.length)
songInfo=mutagen.File(pathToSong, easy=True)
songInfoDisplay()
def songInfoDisplay():
songLabel=Label(master, text=songInfo["title"])
artistLabel=Label(master, text=songInfo["artist"])
albumLabel=Label(master, text=songInfo["album"])
artistLabel.grid(row=5, column=3, stick=E)
songLabel.grid(row=6, column=3, stick=E)
albumLabel.grid(row=7, column=3, stick=E)