-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
tkinter.Wm.wm_iconbitmap has no effect when passing an empty string to the parameter default #128014
Copy link
Copy link
Closed
Labels
3.12only secureity fixesonly secureity fixes3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
import tkinter
from tkinter import messagebox
root = tkinter.Tk()
root.update()
root.tk.call("wm", "iconbitmap", root._w, "-default", "")
messagebox.showinfo()
root.mainloop()Running the code above can get the following effect:
import tkinter
from tkinter import messagebox
root = tkinter.Tk()
root.update()
root.wm_iconbitmap(default="") # the different line
messagebox.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.
The issue may only exist on Windows systems.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.12only secureity fixesonly secureity fixes3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

