I am trying to make a Toplevel widget that is the active window on the screen (I want it so that if you press Enter, it exits the window. I already h
Toplevel
Here is the code which worked for me
root= tk.Tk() root.title("Main Window") top = tk.Toplevel() top.title("Topelevel Window") top.grab_set() #for disable main window top.attributes('-topmost',True) #for focus on toplevel root.mainloop()