multiple checkboxes highlighted when one clicked = not good
James Stroud
jstroud at mbi.ucla.edu
Tue Jul 5 19:24:34 EDT 2005
On Tuesday 05 July 2005 04:11 pm, MooMaster wrote:
> self.InUse =[BooleanVar(), BooleanVar(), BooleanVar(), BooleanVar(),
> BooleanVar(), BooleanVar(), BooleanVar()]
>
for i in range(1,11):
for t in range(7):
if(t==0):
Checkbutton(self.frame2, variable =
self.InUse[t]).grid(row= i, column = t)
should this last line read "self.InUse[i]" ?
What I mean to say is that t is always 0 when you assign variable.
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
More information about the Python-list
mailing list