I've created a python code (Tkinter GUI) that is supposed to communicate with Arduino via serial communication.
I have a table that I need to send over, column by column. but before I send the next column I need to wait for the Arduino to finish processing the previous one.
Here is a code that iterates through the table:
def send():
for row in rows:
for col in row:
print(col.get()),
print(" ")
Here is how the table was created:
rows = []
for i in range(1, 20):
cols = []
for j in range(6):
e = Entry(secondFrame, relief=RIDGE, justify=CENTER)
e.grid(row=i, column=j, sticky=NSEW)
#e.insert(END, '%d.%d' % (i, j))
e.insert(END, '-')
cols.append(e)
rows.append(cols