AttributeError: 'NoneType' object has no attribute 'get' in Python [duplicate] AttributeError: 'NoneType' object has no attribute 'get' in Python [duplicate] tkinter tkinter

AttributeError: 'NoneType' object has no attribute 'get' in Python [duplicate]


Make sure userEntry and passwEntry are not returning None. You can write something like this:

userEntry.get() if userEntry is not None else <something>, passwEntry.get() if passwEntry is not None else <something>

Replace something with a valid default value.