May-08-2021, 12:46 PM
Hello there.
I am back with another question. I am trying to draw a grid of tkinter Canvas Rects. Width and Length was specified in an earlier part of the program. Here is my code:
Does anyone know what is wrong. I tried messing around with the fill, and when I change it to 'white', there is only 1 visible triangle with a black border, and white fill.
I am back with another question. I am trying to draw a grid of tkinter Canvas Rects. Width and Length was specified in an earlier part of the program. Here is my code:
for x in range(wid): for y in range(leng): drawCanv.create_rectangle(x, y, leng/30, wid/30, outline='black')However, I am only getting a completely black filled square in the top left corner of the Canvas.
Does anyone know what is wrong. I tried messing around with the fill, and when I change it to 'white', there is only 1 visible triangle with a black border, and white fill.