]> granicus.if.org Git - python/commitdiff
Issue #27620: Mark the default action button as the default.
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 28 Jul 2016 01:42:54 +0000 (21:42 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Thu, 28 Jul 2016 01:42:54 +0000 (21:42 -0400)
Lib/idlelib/query.py

index c4e2891f2594fd3cb977141f659eba42ac52ba5d..c806c6b196eff5888cb127c3709324b70e3700dc 100644 (file)
@@ -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)