Kaydet (Commit) 3179b360 authored tarafından Guido van Rossum's avatar Guido van Rossum

When no master widget is specified, use options['parent'] if it exists.

üst 7f202633
...@@ -27,6 +27,8 @@ class Dialog: ...@@ -27,6 +27,8 @@ class Dialog:
self.master = master self.master = master
self.options = options self.options = options
if not master and options.get('parent'):
self.master = options['parent']
def _fixoptions(self): def _fixoptions(self):
pass # hook pass # hook
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment