Re: Adaptive Comboboxes
- From: Gerry Snyder <mesmerizerfan@xxxxxxxxx>
- Date: Fri, 27 Jun 2008 16:50:03 GMT
Óscar Fuentes wrote:
jschmeiser@xxxxxxx writes:
A combobox in a GUI displays values from a list. That list is updated
by user actions but I can't get the combobox to update to show the new
values that have been appended or changed in the list. Optimally, the
combobox selections should change everytime there is a change to the
list.
Which combobox? (Tile, BWidget, ...)
I would put a trace on the variable that holds the list, and there
update the combobox by assigning the -values option.
Just to expand a little: the combobox (at least Tile/ttk) takes a (copy of a) list, not a variable name. The widget has no way of knowing that the original list changed, since its copy does not change.
Depending on how you change the original master list, either use the trace recommended above, or just do the configure whenever you change the list. The latter would probably be easier if the list is changed in just one place.
Gerry
.
- Follow-Ups:
- Re: Adaptive Comboboxes
- From: jschmeiser
- Re: Adaptive Comboboxes
- References:
- Adaptive Comboboxes
- From: jschmeiser
- Re: Adaptive Comboboxes
- From: Óscar Fuentes
- Adaptive Comboboxes
- Prev by Date: Re: aes with critcl
- Next by Date: Re: Tcl Jobs and Degrees
- Previous by thread: Re: Adaptive Comboboxes
- Next by thread: Re: Adaptive Comboboxes
- Index(es):
Relevant Pages
|