Normally i use a simple loop to insert a indeterminate progress bar in tkinter.
example
self.pbar_ind = ttk.Progressbar(self, orient="horizontal", length=300, mode="indeterminate")
new_point_in_list = list()
for point in point_in_list:
self.pbar_ind.step(1)
self.update()
if point > 2:
new_point_in_list.append(point)
Now i am using a List Comprehensions to speed my computation
new_point_in_list = [point for point in point_in_list if point > 2]
i wish to know if it possible to insert in the List Comprehensions the Tkinter progress bar
Copyright Notice:Content Author:「Gianni Spear」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25145384/insert-a-tkinter-progress-bar-in-a-list-comprehensions-of-python