Home > Net >  How can I make an another block of items under a grid in tkinter? - Python
How can I make an another block of items under a grid in tkinter? - Python

Time:01-09

I want to make a 'maze' game with tkinter, and I wanted to display some things under the grid(game area), and this happend:

enter image description here

Because I wanted to put the text in the last line and the first column of the grid.

frame = tk.Frame(window)
frame.grid(row=line 1, column=0)
label = tk.Label(master=frame, text="Dashing:")
label.pack()

Any ideas, how can I fix this?

CodePudding user response:

Make the frame span all of the columns:

frame.grid(row=line 1, column=0, columnspan=17)
  •  Tags:  
  • Related