def refresh_list(self): self.listbox.delete(0, tk.END) for title in self.snippets.keys(): self.listbox.insert(tk.END, title)
If you want, I can: