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:
When I execute the code, I am given an AttributeError:
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:
1 2 3 4 5 6 7 8 9 10 11 12 |
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) |
Error:AttributeError: 'int' object has no attribute 'grid'
Can someone offer a hint as to what I am doing wrong please.