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
None of the above suggestions worked for me on Mac OS El Capitan, but this does:
class Window(Tk.Toplevel): ... def setActive(self): self.lift() self.focus_force() self.grab_set() self.grab_release() ...