Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b37dfc

Browse files
committed
Issue #27620: Mark the default action button as the default.
1 parent 263893c commit 6b37dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def create_widgets(self): # Call from override, if any.
8383
self.entry.focus_set()
8484

8585
buttons = Frame(self)
86-
self.button_ok = Button(buttons, text='Ok',
86+
self.button_ok = Button(buttons, text='Ok', default='active',
8787
width=8, command=self.ok)
8888
self.button_cancel = Button(buttons, text='Cancel',
8989
width=8, command=self.cancel)

0 commit comments

Comments
 (0)