From: Kurt B. Kaiser Date: Fri, 10 Jan 2003 03:06:30 +0000 (+0000) Subject: Default the OK key in the Save Before Run dialog. X-Git-Tag: v2.3c1~2494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5e8bb94e56bf5f1e304064c8f9dc96e87980326;p=thirdparty%2FPython%2Fcpython.git Default the OK key in the Save Before Run dialog. --- diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index 0140c6943047..dcb5f9a70400 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -155,6 +155,7 @@ class ScriptBinding: message=msg, icon=tkMessageBox.QUESTION, type=tkMessageBox.OKCANCEL, + default=tkMessageBox.OK, master=self.editwin.text) reply = mb.show() if reply == "ok":