def __init__(self, master, title, backend):
super().__init__(master)
self.geometry("+400+400")
self.title(title)
f = ttk.LabelFrame(self, text="Stats")
ttk.Label(f, text="Connected to Database backend at: "+backend._pyroUri.location).pack()
statstext = "Number of tracks in database: {0} -- Total playing time: {1}".format(backend.num_tracks, datetime.timedelta(seconds=backend.total_playtime))
ttk.Label(f, text=statstext).pack()
f.pack()
ttk.Label(self, text="Adding tracks etc. is done via the command-line interface for now.\n"
"Type 'help' in the console there to see the commands available.").pack()
ttk.Button(self, text="Ok", command=self.destroy).pack()
评论列表
文章目录