From 3179b36014d1dd48cc3f1363edf4b1adecc12c79 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 12 Oct 1998 20:40:47 +0000 Subject: When no master widget is specified, use options['parent'] if it exists. --- Lib/lib-tk/tkCommonDialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/lib-tk/tkCommonDialog.py b/Lib/lib-tk/tkCommonDialog.py index c63ca11..55cf064 100644 --- a/Lib/lib-tk/tkCommonDialog.py +++ b/Lib/lib-tk/tkCommonDialog.py @@ -27,6 +27,8 @@ class Dialog: self.master = master self.options = options + if not master and options.get('parent'): + self.master = options['parent'] def _fixoptions(self): pass # hook -- cgit v0.12