]> granicus.if.org Git - python/commitdiff
When no master widget is specified, use options['parent'] if it exists.
authorGuido van Rossum <guido@python.org>
Mon, 12 Oct 1998 20:40:47 +0000 (20:40 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 12 Oct 1998 20:40:47 +0000 (20:40 +0000)
Lib/lib-tk/tkCommonDialog.py

index c63ca11b68c59c6ed614c7bba96d16742048e87b..55cf0646cb1ea7318427afbb7b753d213e606c23 100644 (file)
@@ -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