diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-12-25 15:04:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 15:04:26 (GMT) |
commit | bb70b2afe39ad4334a9f3449cddd28149bd628b6 (patch) | |
tree | 6d86d962cf07b543fa5d25078a24bd4b9cee54ed /Lib/tkinter/commondialog.py | |
parent | 954a7427ba9c2d02faed32c02090caeca873aeca (diff) | |
download | cpython-bb70b2afe39ad4334a9f3449cddd28149bd628b6.zip cpython-bb70b2afe39ad4334a9f3449cddd28149bd628b6.tar.gz cpython-bb70b2afe39ad4334a9f3449cddd28149bd628b6.tar.bz2 |
bpo-15303: Support widgets with boolean value False in Tkinter (GH-23904)
Use `widget is None` instead of checking the boolean value of a widget.
Diffstat (limited to 'Lib/tkinter/commondialog.py')
-rw-r--r-- | Lib/tkinter/commondialog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/commondialog.py b/Lib/tkinter/commondialog.py index cc30698..12e42fe 100644 --- a/Lib/tkinter/commondialog.py +++ b/Lib/tkinter/commondialog.py @@ -18,7 +18,7 @@ class Dialog: command = None def __init__(self, master=None, **options): - if not master: + if master is None: master = options.get('parent') self.master = master self.options = options |