mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +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 @@ def __init__(self, master=None, **options):
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue