Dec-29-2021, 07:06 PM
hi, sorry for my bad English,
I tried this code of my, it works but a line is skipped
I hope some advanced user can help me with this case,
thank you for reading, have a nice day
I tried this code of my, it works but a line is skipped
from tkinter import * from tkinter.ttk import * tk=Tk() progress=Progressbar(tk,orient=HORIZONTAL,length=500,mode='determinate') def bar(): progress['value']=50 # <= this line is skipped if not 'MT' in globals(): global MT try: import dl_translate as dlt except: os.system("pip install dl_translate") MT = dlt.TranslationModel() progress['value']=100 progress.pack() Button(tk,text='Test Progress Bar',command=bar).pack() mainloop()literally, I don't know what really happen,
I hope some advanced user can help me with this case,
thank you for reading, have a nice day