OptionMenu "selected value" vs " display value"

I’m using an OptionMenu
When the option menu drops down I want to show a list like
“A one
B two
C three”

The word(s) after the A/B/C are descriptive text I don’t want in the final selection.

But then when one of these rows is selected the I want the selected value to be A/B/C not the entire row.

So when the OptionMenu is collapsed I only want to see the drop down the single letter as the selected value.And in the attached StringVar() I want just the single letter.

I seem to remember something like this is possible in C# list box; its the difference between the “selected value” vs " display value"

Any prior art?

1 Like

Hi John,

Which GUI toolkit are you using?

1 Like

import tkinter

1 Like