Jan-23-2021, 08:44 PM
Hey all,
I am stuck on this error that I thought I understood, but I am struggling, so I decided to reach out to the community.
The code is:
I am stuck on this error that I thought I understood, but I am struggling, so I decided to reach out to the community.
The code is:
from tkinter import * piece_counter = [] piece_index = 0 for c in range(7): for r in range(6, 0, -1): piece_counter = piece_counter[piece_index].grid(row = r, column = c, padx = 0, pady = 0, sticky = S)When I execute the code, I am given an AttributeError:
Error:AttributeError: 'int' object has no attribute 'grid'
Can someone offer a hint as to what I am doing wrong please.