From: Guido van Rossum Date: Mon, 12 Oct 1998 20:40:47 +0000 (+0000) Subject: When no master widget is specified, use options['parent'] if it exists. X-Git-Tag: v1.5.2a2~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3179b36014d1dd48cc3f1363edf4b1adecc12c79;p=thirdparty%2FPython%2Fcpython.git When no master widget is specified, use options['parent'] if it exists. --- diff --git a/Lib/lib-tk/tkCommonDialog.py b/Lib/lib-tk/tkCommonDialog.py index c63ca11b68c5..55cf0646cb1e 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