[Tkinter-discuss] Navigation in menu with multiple columns
Michael Lange
klappnase at web.de
Thu Sep 14 03:45:36 EDT 2023
Hi Vasilis,
On Wed, 13 Sep 2023 15:57:10 +0000
Vasilis Vlachoudis <Vasilis.Vlachoudis at cern.ch> wrote:
> 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
could you please post a simple example that shows this behaviour?
Have a nice day,
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
Peace was the way.
-- Kirk, "The City on the Edge of Forever", stardate unknown
More information about the Tkinter-discuss
mailing list