From 6b37dfce5bafe96472f8936a7a44fad0abae9e98 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 27 Jul 2016 21:42:54 -0400 Subject: Issue #27620: Mark the default action button as the default. --- Lib/idlelib/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/query.py') diff --git a/Lib/idlelib/query.py b/Lib/idlelib/query.py index c4e2891f25..c806c6b196 100644 --- a/Lib/idlelib/query.py +++ b/Lib/idlelib/query.py @@ -83,7 +83,7 @@ class Query(Toplevel): self.entry.focus_set() buttons = Frame(self) - self.button_ok = Button(buttons, text='Ok', + self.button_ok = Button(buttons, text='Ok', default='active', width=8, command=self.ok) self.button_cancel = Button(buttons, text='Cancel', width=8, command=self.cancel) -- cgit v1.2.1