combobox Question - TCL
This is a discussion on combobox Question - TCL ; Hello,
is there a combobox which can handle a 'show-value' and a 'set-value'?
I want to populate a combobox with the values "one" "two" "three" but want the widgets variable be set to "1" "2" "3" - or
if the ...
-
combobox Question
Hello,
is there a combobox which can handle a 'show-value' and a 'set-value'?
I want to populate a combobox with the values "one" "two" "three" but want the widgets variable be set to "1" "2" "3" - or
if the variable is set to i.E. "1" the shown value should be set to "one"
Thanks for help,
Matthias
-
Re: combobox Question
Matthias Meier <Meier@FuH-E.de> wrote:
> is there a combobox which can handle a 'show-value' and a 'set-value'?
>
> I want to populate a combobox with the values "one" "two" "three" but want
> the widgets variable be set to "1" "2" "3" - or
> if the variable is set to i.E. "1" the shown value should be set to "one"
This is something you may just want to manage yourself, keeping a list
of "real" values paralleling the "display" values in the combobox.
There's a listbox example here that illustrates this (the ttk::combobox
works pretty much the same way):
http://www.tkdocs.com/tutorial/morewidgets.html
Hope this helps.
Mark