Issue #27620: Mark the default action button as the default.
This commit is contained in:
parent
263893c261
commit
6b37dfce5b
|
@ -83,7 +83,7 @@ class Query(Toplevel):
|
||||||
self.entry.focus_set()
|
self.entry.focus_set()
|
||||||
|
|
||||||
buttons = Frame(self)
|
buttons = Frame(self)
|
||||||
self.button_ok = Button(buttons, text='Ok',
|
self.button_ok = Button(buttons, text='Ok', default='active',
|
||||||
width=8, command=self.ok)
|
width=8, command=self.ok)
|
||||||
self.button_cancel = Button(buttons, text='Cancel',
|
self.button_cancel = Button(buttons, text='Cancel',
|
||||||
width=8, command=self.cancel)
|
width=8, command=self.cancel)
|
||||||
|
|
Loading…
Reference in New Issue