I recently started learning about tkinter menu's.
Is there any way to add sub-menus inside a sub-menu ?
I mean , when I hover over a option in my menu , I want more sub-menus to show up.
I'm very sorry if I am unclear , I don't know how do I explain this , but
here's an image(GIF) of what I want .is there any way to achieve this in tkinter ?
Here's the code
from tkinter import *
root = Tk()
root.geometry("500x500")
mainmenu = Menu(root)
root.config(menu = mainmenu)
test_menu = Menu(mainmenu , tearoff = False)
mainmenu.add_cascade(label = "Test Menu" , menu = test_menu)
test_menu.add_command(label = "Show Sub-menus ")
mainloop()
It would be great if anyone could help me out.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…