AttributeError: 'NoneType' object has no attribute 'get' The entry.get is returning this error. : I am using tkinter for my work. This is my code where the entry.get() doesn't work. I don't know what the error is for as this has worked previously in my work.    
    from tkinter import *
    def please():
        print (entry_2.get())#The error

    window_2=Tk()
    label_6=Label(window_2, text="New Username", font="Calibri 12 
    bold").grid(column=0)
    label_7=Label(window_2, text="New Password", font="Calibri 12 
    bold").grid(row=1)
    entry_1=Entry(window_2, font="Calibri 12 bold").grid(row=0, column=1)
    
    #This is the entry toget the contents
    entry_2=Entry(window_2, font="Calibri 12 bold", show="*").grid(row=1, 
    column=1)
    label_address=Label(window_2, text="Address", font="Calibri 12 bold"). 
    grid(row=2, column=0)
    entry_address=Entry(window_2, font="Calibri 12 bold").grid(row=2, column=1)
    label_dob=Label(window_2, text="Date Of Birth e.g.DD/MM/YEAR", font="Calibri 
    12 bold"). grid(row=3, column=0)
    entry_dob=Entry(window_2, font="Calibri 12 bold").grid(row=3, column=1)
    label_gender=Label(window_2, text="Gender e.g. Male/Female/Other", 
    font="Calibri 12 bold").grid(row=4, column=0)
    entry_gender=Entry(window_2, font="Calibri 12 bold").grid(row=4, column=1)
    label_interests=Label(window_2, text="Interests", font="Calibri 12 
    bold").grid(row=5, column=0)
    entry_interests=Entry(window_2, font="Calibri 12 bold").grid(row=5, 
    column=1)
    button_3=Button(window_2, text="Create", font="Calibri 12 bold", 
    command=please).grid(row=6, column=1)
    window_2.mainloop()