mirror of
https://github.com/python/cpython.git
synced 2025-09-12 11:46:52 +00:00
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.
This commit is contained in:
parent
cbe16aefb8
commit
3be2e54adc
5 changed files with 20 additions and 20 deletions
|
@ -197,10 +197,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue