When no master widget is specified, use options['parent'] if it exists.
This commit is contained in:
parent
7f20263349
commit
3179b36014
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user