Why ttk Progressbar appears after process in Tkinter
问题 I want to create a large text upon Tkinter menu command and provide visual support by a progress bar. Although the progress bar is meant to start before the subsequent time-consuming loop, the progress bar shows up only after the large text was created and displayed. def menu_bar(self): self.create_menu.add_command(label="Create large file", command=self.create_large_file) def create_large_file(self): self.progressbar = ttk.Progressbar(self.master, mode='indeterminate') self.progressbar.pack(