Delay 2 methods in Tkinter Python

Viewed 21

I have a question about the delay of methods. How to properly delay the function "openFile" relative to "Progress". Every time I run it both windows start with a delay of 2sec, and I need openFile () 2sec Progress().

Both methods in the code are working wrong.

Thank you for your help.

def get_function(self):
    self.openFile()
    self.after(2000)
    # time.sleep(2)
    Progress(tk.Tk()).get_run_progress_bar()
0 Answers
Related