diff options
author | Zhikang Yan <2951256653@qq.com> | 2025-01-02 15:51:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-02 15:51:57 (GMT) |
commit | 58e9f95c4aa970db32a94b9152b51ede22f823bd (patch) | |
tree | 3f4c46324a829b28d820b042389c04ca1aa8b342 /Lib/tkinter | |
parent | c9d2bc6d7f6d74e0539afb0f7066997ae736dfc8 (diff) | |
download | cpython-58e9f95c4aa970db32a94b9152b51ede22f823bd.zip cpython-58e9f95c4aa970db32a94b9152b51ede22f823bd.tar.gz cpython-58e9f95c4aa970db32a94b9152b51ede22f823bd.tar.bz2 |
gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() (GH-128015)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | Lib/tkinter/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index bfec04b..d494c0c 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -2265,7 +2265,7 @@ class Wm: explicitly. DEFAULT can be the relative path to a .ico file (example: root.iconbitmap(default='myicon.ico') ). See Tk documentation for more information.""" - if default: + if default is not None: return self.tk.call('wm', 'iconbitmap', self._w, '-default', default) else: return self.tk.call('wm', 'iconbitmap', self._w, bitmap) |