mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Default the OK key in the Save Before Run dialog.
This commit is contained in:
parent
33e0f383d4
commit
a5e8bb94e5
1 changed files with 1 additions and 0 deletions
|
@ -155,6 +155,7 @@ class ScriptBinding:
|
||||||
message=msg,
|
message=msg,
|
||||||
icon=tkMessageBox.QUESTION,
|
icon=tkMessageBox.QUESTION,
|
||||||
type=tkMessageBox.OKCANCEL,
|
type=tkMessageBox.OKCANCEL,
|
||||||
|
default=tkMessageBox.OK,
|
||||||
master=self.editwin.text)
|
master=self.editwin.text)
|
||||||
reply = mb.show()
|
reply = mb.show()
|
||||||
if reply == "ok":
|
if reply == "ok":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue