I am trying to make an audio-player in python but I can't make it work with the progress bar with the song playing at the same time. I don't know if I need make the clock or how implement the song in the progress bar.
def progress():
if pb['value'] < 100:
pb['value'] += 10
progress=ttk.Progressbar(window, orient=HORIZONTAL, cursor='hand2',
length=780,).place(x=95, y=500)```
I get the song of the listbox:
listBox=tk.Listbox(window, fg='cyan', bg='black', selectbackground='magenta', width=100, font=('ds-digital', 30))
listBox.place(x=80, y=6, width=550, height=370)
Screenshot of audio-player: