[Tkinter-discuss] Navigation in menu with multiple columns

Vasilis Vlachoudis Vasilis.Vlachoudis at cern.ch
Wed Sep 13 11:57:10 EDT 2023


In my application I am dynamically creating cascading menus, where some of them have multiple entries. To imrpove the visualization I break them into multiple columns using the "columnbreak=1" attribute in the Menu.add_command()

The Up/Down keys move correctly the active/highlighted entry up/down

However the Left key closes always the cascade submenu, while I would prefer to highlight the entry on the left column, and when it is on the left-most column to close the cascade submenu
Is there a way to bind the Left/Right keys to move left/right in the columns?

Vasilis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/tkinter-discuss/attachments/20230913/62200bbd/attachment.html>


More information about the Tkinter-discuss mailing list