import tkinter as tk window = tk.Tk() firstEntry = tk.Entry(window) #this line creates the text box and the variable can be anything firstEntry.pack() #this loads it and it must start with the variable name and .pack() at the end window.mainloop()