def body(self, master):
ttk.Style().configure("White.TLabel", background="white")
self.variable_name = tk.StringVar()
name = ttk.Label(master, textvariable=self.variable_name, style="White.TLabel")
name.pack(anchor="w", padx=20, pady=[10, 0])
self.variable_percent = tk.StringVar()
percent = ttk.Label(master, textvariable=self.variable_percent, style="White.TLabel")
percent.pack(anchor="w", padx=20, pady=[0, 10])
self.variable_progress = tk.IntVar()
progress = ttk.Progressbar(master, variable=self.variable_progress, maximum=self.maximum)
progress.pack(fill="x", padx=20, pady=[0, 10])
评论列表
文章目录