Aug-15-2020, 07:27 PM
Hi, New python user here.
I have an array of 160 Entry widgets. I created them inside nested for loops, rather than 160 explicit lines. Now, I don't know how to read them. I tried:
(Inside FOR loops)
Thanks,
I have an array of 160 Entry widgets. I created them inside nested for loops, rather than 160 explicit lines. Now, I don't know how to read them. I tried:
(Inside FOR loops)
xxx[a,b,c] = Entry(root, bg="white",fg="black", width=7, relief=SUNKEN).grid(row=p_row,column=p_col+1)I then tried getting the data like this:
for a in range(8): for b in range(4): for c in range(5): xxx[a,b,c].get() print(xxx)But it doesn't work. Is there a way to do this, or do I have to have 160 lines with 160 separate variables?
Thanks,