Tkinter programming 2

You forgot to use parent in widgets ie. Label(self, …) so automatically you put widgets into root (Main Window), not into self (Frame). And later you remove widgets from self but elements in root stays. from tkinter import * class Window(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.init_window() def init_window(self): self.master.title(“SAMPLE”) self.pack(expand=1) l = Button(self, text=”Log … Read more