Aug-15-2020, 11:57 PM
(Aug-15-2020, 10:47 PM)bowlofred Wrote: I thought that was most of what you had done in your first post. You created (and stored) the widgets in an array (I assume you're using pandas or such).
xxx[a,b,c] = Entry(root, bg="white",fg="black", width=7,relief=SUNKEN).grid(row=p_row,column=p_col+1)Then in your loops it looks like you try to retrieve the data, but you don't do anything with it. It's like a line that says2+4
. It turns into 6, but then is thrown away.
for a in range(8): for b in range(4): for c in range(5): xxx[a,b,c].get() print(xxx)Perhaps instead you could change the "get" line above to something like:
data = xxx[a,b,c].get() print(f"Widget {a},{b},{c} has data {data}")Then when the loop is run, you can see all the data (or make use of it in some way).
This doesn't work.
data = xxx[a,b,c].get()I get the error: AttributeError: 'numpy.float64' object has no attribute 'get'
I tried
data[a,b,c]=xxx[a,b,c].get()
data=xxx[a,b,c].get()where data is an array[8,4,5]
I tried where data is a single variable. All of them gave the same error.