Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Tkinter have a refresh method?

I am using Tkinter.

import Tkinter as tk

class App(tk.Frame):
  def __init__(self, *args, **kwargs):
    tk.Frame.__init__(self, *args, **kwargs)
     ....
root = tk.Tk()
root.title("title")

app = App(root)
root.mainloop() 

Does it has a refresh? Because I want to refresh my frame. Is root.refresh() is possible?

like image 999
gadss Avatar asked Oct 20 '13 13:10

gadss


1 Answers

There is a Tk.update() and a Tk.update_idletasks(). Both will force the UI to be refreshed, but depending on what you're actually trying to do it might not be what you're looking for.

like image 145
Junuxx Avatar answered Sep 22 '22 13:09

Junuxx