mirror of https://github.com/python/cpython.git
Default the OK key in the Save Before Run dialog.
This commit is contained in:
parent
33e0f383d4
commit
a5e8bb94e5
|
@ -155,6 +155,7 @@ def getfilename(self):
|
||||||
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…
Reference in New Issue