Tkinter - How to create submenus in menubar
问题 Is it possible? By looking at the options I'm stumped. Searching on the web hasn't lead me anywhere. Can I create a submenu in the menubar. I'm referring to doing something similar to Idle Shell when I click on File and go down to Recent Files and it pulls up a separate file showing the recent files I've opened. If it's not possible what do I have to use to get it to work? 回答1: You do it exactly the way you add a menu to the menubar, with add_cascade . Here's an example: # Try to import