summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ScriptBinding.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-26 02:22:48 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-26 02:22:48 (GMT)
commit8bfacc798559bb99bc9e13060b9ff23234760c1f (patch)
treeca5f10b4edd45a3b63fbd693c4a5bfe252df7c12 /Lib/idlelib/ScriptBinding.py
parent647412fb89521a2f939852caed06985fb35f156b (diff)
downloadcpython-8bfacc798559bb99bc9e13060b9ff23234760c1f.zip
cpython-8bfacc798559bb99bc9e13060b9ff23234760c1f.tar.gz
cpython-8bfacc798559bb99bc9e13060b9ff23234760c1f.tar.bz2
Issue #25173: Replace 'master' with 'parent' in tkinter.messagebox calls.
This associates the message box with the widget and is better for Mac OSX. Patch by Mark Roseman.
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
-rw-r--r--Lib/idlelib/ScriptBinding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py
index 18c0565..0309a8a 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -213,10 +213,10 @@ class ScriptBinding:
confirm = tkMessageBox.askokcancel(title="Save Before Run or Check",
message=msg,
default=tkMessageBox.OK,
- master=self.editwin.text)
+ parent=self.editwin.text)
return confirm
def errorbox(self, title, message):
# XXX This should really be a function of EditorWindow...
- tkMessageBox.showerror(title, message, master=self.editwin.text)
+ tkMessageBox.showerror(title, message, parent=self.editwin.text)
self.editwin.text.focus_set()