What I wanted was that if the user hasn't written his name, the program would say that he needs to do so.
Here is the code that you need to see:
window = tk.Tk()
entry = Entry(window,...
if len(entry) == 0:
print("Please write your username!")