Updating Python Tkinter GUI using .after method
I think you should use your app
directly in the function call to refresher
:
def refresher(frame): frame.getXML()# I Don`t know what do this function, just an example frame.after(1000,refresher,frame)main = tk.Tk()main.wm_title("Readdit")# main.geometry("350x400")app = Application(master=main)# Begins the applications GUI loop# app.__init__()refresher(app) #use app hereapp.mainloop()
It looks like the problem is here:
Application.entryVar(Application)
Application
is a class rather than an object, so my guess is that you should be using an instance of Application
both places in that code.