Progressbar to show amount of music played
问题 Suppose I use mp3play module to play mp3 files, and using ttk.Progressbar , I want to show the amount(duration) of music played. Is there any code to achieve it? I also want a timer a to show the duration of music played. import ttk import mp3play self.music = mp3play.load('filename') self.fr=ttk.Frame() self.fr.pack(expand=True, fill=BOTH, side=TOP) self.seek=ttk.Progressbar(self.fr, orient='horizontal', mode='determinate', length=500) self.seek.place(x=50, y=325) self.seek.start() 回答1: It