diff --git a/Lib/tkinter/simpledialog.py b/Lib/tkinter/simpledialog.py index 538bbfc318d704..60cbf8f84c9737 100644 --- a/Lib/tkinter/simpledialog.py +++ b/Lib/tkinter/simpledialog.py @@ -176,6 +176,7 @@ def buttonbox(self): w.pack(side=LEFT, padx=5, pady=5) self.bind("", self.ok) + self.bind("", self.ok) self.bind("", self.cancel) box.pack()