Can Widgets access vector elements?
Can a Tk widget's variable be an element of a vector? For example, I
can do:
(define b "asdf")
(entry '.e :textvariable "b")
Is there some way, if b is a vector, say by:
(define b #(1 3 5 7 9))
to get the textvariable associated with .e to be the third element of
b?
I'm asking because I'd like to sort of set up a listbox of entry
widgets. I was thinking of doing this, for example, by setting up say
5 entry widgets, each of which is associated to the ith through i+5th
elements of a vector of say length 10, starting at index i. I'd then
add a scrollbar which controls the index i.
More generally, if I want the vector to be able to grow, I'd want to
be able to do the same as above with a list instead of a vector.
Any ideas?
Thanks,
Harvey J. Stein
Berger Financial Research
hjstein_at_math.huji.ac.il
Received on Mon Oct 10 1994 - 09:01:59 CET
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST