I am trying to bind a function to my EntryBox.
nameEntry = tk.Entry(root,textvariable=nameInput,bg="white",font=("Arial",28)).grid(row=2,column=2)
nameEntry.bind("<FocusOut>",nameValidation(nameInput.get()))
However I get this error
AttributeError: 'NoneType' object has no attribute 'bind'
The result of type(nameEntry)
<class 'NoneType'>
When I remove the .bind line, the tkinter GUI loads perfectly. I am confused as to why nameEntry
is being treated as 'NoneType'.