from tkinter import *
my_window = Tk()
def converter():
F = float(entry_input.get())
T = (F-32)*5/9
display_Temp["text"] = str(T)
Label(my_window,text="Enter Temperature in Farenheit = ").grid(row=0,column=0)
display_Temp = Label(my_window).grid(row=1,column=1)
entry_input = Entry(my_window).grid(row=0,column=1)
button = Button(my_window,text="Convert to Deg Celcius",command = converter,bd=8,relief="raised").grid(row=1,column=0)
my_window.mainloop()
I have entered 20 F in the GUI window that is created to convert the Fahrenheit a value to Deg Celsius. But, it gives following error message while I press the converter button: AttributeError: 'NoneType' object has no attribute 'get'
Please, refer the image to understand the error
I have included the corrections as per the below accepted answer and it worked as given below: