removed hard coded example recent files

This commit is contained in:
Blake Harnden 2020-02-04 10:03:10 -08:00
parent 26a03cc758
commit 3846f2b5bd

View file

@ -59,14 +59,7 @@ class Menubar(tk.Menu):
self.app.bind_all("<Control-s>", self.save) self.app.bind_all("<Control-s>", self.save)
# some hard code values for testing # some hard code values for testing
sample_xmls = [
"sample1.xml",
"/home/ncs/.coretk/xmls/sample1.xml",
"sample1.xml",
]
recent = tk.Menu(menu) recent = tk.Menu(menu)
for i in sample_xmls:
recent.add_command(label=i, command=partial(self.open_recent_files, i))
menu.add_cascade(label="Recent files", menu=recent) menu.add_cascade(label="Recent files", menu=recent)
menu.add_separator() menu.add_separator()
menu.add_command(label="Export Python script...", state=tk.DISABLED) menu.add_command(label="Export Python script...", state=tk.DISABLED)