I am using Tkinter.
import Tkinter as tk class App(tk.Frame): def __init__(self, *args, **kwargs): tk.Frame.__init__(self, *args, **kwargs) ....
It's very simple :) Create a function to refresh as given below and call it using a widget.
def refresh(self): self.destroy() self.__init__()
It worked for me. All you have to do is destroy your main frame tk.Frameand call the constructor again self.__init__().
tk.Frame
self.__init__()