I tried using the Grid manager and wanted to place 4 buttons in 2 rows and 2 columns with this code:
button1 = Button(window, wrap="Button1", width=10)
button1.grid(row=0, column=0)
button1.pack()
button2 = Button(window, wrap="Button2", width=10)
button2.grid(row=0, column=1)
button2.pack()
button3 = Button(window, wrap="Button3", width=10)
button3.grid(row=1, column=0)
button3.pack()
button4 = Button(window, wrap="Button4", width=10)
button4.grid(row=1, column=1)
button4.pack()
And I got this error:
_tkinter.TclError: bad screen distance "Button1"
I don't know what a screen distance is and don't know how to fix a bad one. Can someone please help me there, please?