Below code is my python code. I am trying to make a simple calculator with the GUI Tkinder, but here the grid system is not properly working for me plz anyone say what is the problem.
from Tkinter import *
from tkinter import font
window = Tk()
Screen = Label(window,
text="Calculator",
bg="#2ecc71",
width=26,
height=2,
font=("Verdana", 22))
myFont = font.Font(size=12)
num7 = Button(window,
text=7,
height=5,
width=10)
num7['font'] = myFont
num8 = Button(window,
text=8,
height=5,
width=10)
num8['font'] = myFont
num9 = Button(window,
text=9,
height=5,
width=10)
num9['font'] = myFont
window.geometry("500x500+420+120")
#window.resizable(False, False) #commented for seeing the button that comes out of the boundary
window.title("Calculator -by Jobin")
Screen.grid(row=0, column=0, padx=10, pady=10)
num7.grid(row=1, column=0)
num8.grid(row=1, column=1)
num9.grid(row=1, column=2)
window.mainloop()