-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-128014: fix handling of a default
empty string passed to tkinter.Wm.wm_iconbitmap
#128015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ap` could not take effect when passing an empty string
default
of tkinter.Wm.wm_iconbitmap
could not take effect when passing an empty string
I think this might need a "skip news" label. |
This is a user-visible change, right? If so, this will need a news entry. |
Currently, widget.wm_iconbitmap treats A possible blurb: When passing @serhiy-storchaka This seems liike a trivial fix. Apply? Backport? |
It is not the only site where all empty values are treated the same way as None. There was even a discussion about this somewhere. We should fix this issue all at once (if this is an issue) instead of one line per PR. |
On other hand, this looks like a bug that blocks a useful use case. So we can fix only this bug in this PR. But we need a test for this. |
Sorry, I don't know how to test this. |
No problem, I added a test. |
default
of tkinter.Wm.wm_iconbitmap
could not take effect when passing an empty stringdefault
passed to tkinter.Wm.wm_iconbitmap
default
passed to tkinter.Wm.wm_iconbitmap
default
empty string passed to tkinter.Wm.wm_iconbitmap
Macos-13 had 2 failures. Seem like should be spurious, in test_multiprocessing, but failed on retest, along with test_tkinter.
Real, in new test iconbitmap in test_tkinter.
|
Even before this PR change, |
Oh, there is a bug in Tk (https://core.tcl-lang.org/tk/tktview/13ac26b35dc55f7c37f70b39d59d7ef3e63017c8). |
It is better to wait until this bug was fixed in Tk, so we could skip the check conditionally. |
Thanks @Xiaokang2022 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…bitmap() (pythonGH-128015) (cherry picked from commit 58e9f95) Co-authored-by: Zhikang Yan <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
Sorry, @Xiaokang2022 and @serhiy-storchaka, I could not cleanly backport this to
|
GH-128418 is a backport of this pull request to the 3.13 branch. |
…wm_iconbitmap() (pythonGH-128015) (cherry picked from commit 58e9f95) Co-authored-by: Zhikang Yan <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
GH-128420 is a backport of this pull request to the 3.12 branch. |
…nbitmap() (GH-128015) (GH-128418) (cherry picked from commit 58e9f95) Co-authored-by: Zhikang Yan <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
…nbitmap() (GH-128015) (GH-128420) (cherry picked from commit 58e9f95) Co-authored-by: Zhikang Yan <[email protected]>
…bitmap() (pythonGH-128015) Co-authored-by: Serhiy Storchaka <[email protected]>
tkinter.Wm.wm_iconbitmap
has no effect when passing an empty string to the parameterdefault
#128014