askmarkio / deregtext

Creating a simple text editor
0 stars 0 forks source link

Add tracking of recent files and include menu option #17

Open askmarkio opened 5 months ago

askmarkio commented 5 months ago
menu_recent = Menu(menu_file)
menu_file.add_cascade(menu=menu_recent, label='Open Recent')
for f in recent_files:
    menu_recent.add_command(label=os.path.basename(f), command=lambda f=f: openFile(f))