mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
When no master widget is specified, use options['parent'] if it exists.
This commit is contained in:
parent
7f20263349
commit
3179b36014
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue