Navigation in menu with multiple columns

Vasilis Vlachoudis <[email protected]> Wed, 13 Sep 2023 15:57:10 +0000
Newsgroups gmane.comp.python.tkinter
Message-ID <ZRAP278MB0221135F16B00AAA4DA4997984F0A@ZRAP278MB0221.CHEP278.PROD.OUTLOOK.COM>
--===============1066138768310963102==
Content-Language: en-IE
Content-Type: multipart/alternative;
	boundary="_000_ZRAP278MB0221135F16B00AAA4DA4997984F0AZRAP278MB0221CHEP_"

--_000_ZRAP278MB0221135F16B00AAA4DA4997984F0AZRAP278MB0221CHEP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=3D1" attribute in the Menu.add_comm=
and()

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

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

Vasilis

--_000_ZRAP278MB0221135F16B00AAA4DA4997984F0AZRAP278MB0221CHEP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
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 &quot;columnbreak=3D1&quot; attribute in the Men=
u.add_command()<br>
<br>
The Up/Down keys move correctly the active/highlighted entry up/down</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
<br>
However the Left key closes always the cascade submenu, while I would prefe=
r to highlight the entry on the left column, and when it is on the left-mos=
t column to close the cascade submenu<br>
Is there a way to bind the Left/Right keys to move left/right in the column=
s?</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
Vasilis</div>
</body>
</html>

--_000_ZRAP278MB0221135F16B00AAA4DA4997984F0AZRAP278MB0221CHEP_--

--===============1066138768310963102==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tkinter-discuss mailing list
[email protected]
https://mail.python.org/mailman/listinfo/tkinter-discuss

--===============1066138768310963102==--