summaryrefslogtreecommitdiff
path: root/Lib/tkinter/commondialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter/commondialog.py')
-rw-r--r--Lib/tkinter/commondialog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/commondialog.py b/Lib/tkinter/commondialog.py
index e56b5baf7d..cc3069842c 100644
--- a/Lib/tkinter/commondialog.py
+++ b/Lib/tkinter/commondialog.py
@@ -18,10 +18,10 @@ class Dialog:
command = None
def __init__(self, master=None, **options):
+ if not master:
+ master = options.get('parent')
self.master = master
self.options = options
- if not master and options.get('parent'):
- self.master = options['parent']
def _fixoptions(self):
pass # hook