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 1 month ago

askmarkio commented 1 month 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))