Aug-06-2017, 04:48 AM
(This post was last modified: Aug-06-2017, 04:49 AM by AnonymousNobody.)
I have been trying to create a tkinter display of a variable that changes semi-regularly, but I cannot seem to get it to update regardless of what I try.
I have tried config(), StringVar(), and global.
I have tried config(), StringVar(), and global.
#removed code and comments from tkinter import ttk root = Tk() L = Label(root, justify = LEFT) L.pack() V = StringVar() L['textvariable'] = V V.set('Test') #more removed code used for defining Lvar def function(): if condition True: #code for defining Lvar and X (wait time) removed to not have over 200 lines listed V.set(Lvar) #L.config(text = '{}'.format(Vortoj)) root.after(X, function) function() root.mainloop()