Tkinter variables
Ulf Engstrøm
b2blink at hotmail.com
Tue Dec 21 14:21:46 EST 1999
I'll answer my own question with an other question, since I do have a
solution that seems to work.
If I use numbers in a dict like:
dict = {}
for name, num in myClass.names,range(len(myClass.names)):
var = StringVar()
dict[num] =
Checkbutton(root,text=name,onvalue=name,offvalue='',variable=var)
dict[num].grid(row=num)
dict[num].var = var
Is this a workable solution or which one would be better?
Regards
Ulf Engstrøm
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
More information about the Python-list
mailing list