vbar = tk.Scrollbar(self, orient=tk.VERTICAL) vbar.config(command=self.yview) vbar.pack(side=tk.RIGHT, fill=tk.Y, pady=(0, 16)) hbar = tk.Scrollbar(self, orient=tk.HORIZONTAL) hbar.config(command=self.xview) hbar.pack(side=tk.BOTTOM, fill=tk.X) self.config(background='white', yscrollcommand=vbar.set, xscrollcommand=hbar.set) self.focus_set() self.elements = {} self.shift = {} self.delete("all") self.destroy()