I have a Python code that runs query from SQL server and gives back the output whenever the run query button is clicked in Tkinter. The issue is sometimes the query takes about 10-20 min to finish and I wouldn't know exactly how much time did the query take to complete.
The code below is a sample of printing on screen in Tkinter.
from tkinter import *
def command(d):
print(d)
a = Tk()
b = []
for c in range(0, 5):
x = Button(a, text=c, command=lambda j=c: command(j)))
x.pack()
b.append(x)
a.mainloop()
So I am thinking of adding like a status bar to print the time when the button was clicked and record time again when the process is finished after the display of message box.