You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tkinter.Wm.wm_iconbitmap has no effect when passing an empty string to the parameter default #128014
Running the code above can get the following effect:
importtkinterfromtkinterimportmessageboxroot=tkinter.Tk()
root.update()
root.wm_iconbitmap(default="") # the different linemessagebox.showinfo()
root.mainloop()
Running the code above can get the following effect:
However, in fact, these two pieces of code should be equivalent, but due to an inaccurate logical judgment, this problem arises.
This is a very easy bug to fix, and I'll create a PR to fix it later.
Activity
gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap…
pythongh-128014: Fix passing default='' to the tkinter method wm_icon…
[3.12] pythongh-128014: Fix passing default='' to the tkinter method …
serhiy-storchaka commentedon Jan 2, 2025
Thank you for your report and PR @Xiaokang2022.
[3.13] gh-128014: Fix passing default='' to the tkinter method wm_ico…
[3.12] gh-128014: Fix passing default='' to the tkinter method wm_ico…
pythongh-128014: Fix passing default='' to the tkinter method wm_icon…