Jan-30-2021, 12:15 AM
You might do better using
place
rather than grid
for this.from tkinter import * root = Tk() root.geometry("345x380") root.title("Calculator") root.resizable (False, False) window = Entry(root, width = 40).place (x = 8, y = 10) button_7 = Button(root, text = "7" , padx = 50, pady = 30).place (x = 0, y = 40) button_8 = Button(root, text = "8" , padx = 50, pady = 30).place (x = 115, y = 40) button_9 = Button(root, text = "9" , padx = 50, pady = 30).place (x = 230, y = 40) button_4 = Button(root, text = "4" , padx = 50, pady = 30).place (x = 0, y = 125) button_5 = Button(root, text = "5" , padx = 50, pady = 30).place (x = 115, y = 125) button_6 = Button(root, text = "6" , padx = 50, pady = 30).place (x = 230, y = 125) button_1 = Button(root, text = "1" , padx = 50, pady = 30).place (x = 0, y = 210) button_2 = Button(root, text = "2" , padx = 50, pady = 30).place (x = 115, y = 210) button_3 = Button(root, text = "3" , padx = 50, pady = 30).place (x = 230, y = 210) button_0 = Button(root, text = "0" , padx = 35, pady = 30).place (x = 0, y = 295) button_minus = Button(root, text = "-" , padx = 35, pady = 30).place (x = 85, y = 295) button_add = Button(root, text = "+" , padx = 35, pady = 30).place (x = 166, y = 295) button_equal = Button(root, text = "=" , padx = 35, pady = 30).place (x = 257, y = 295) root.mainloop()