[issue15189] tkinter.messagebox does not use the application's icon

Mark Summerfield report at bugs.python.org
Thu Jul 12 11:06:51 CEST 2012


Mark Summerfield <mark at qtrac.eu> added the comment:

I think there is a solution to this that can be applied in one's own code:

app = tkinter.Tk()
icon = tkinter.PhotoImage(file="icon.gif")
app.tk.call("wm", "iconphoto", app, "-default", icon)

According to the docs (and it seems to be true), the icon thus set will be used for *all* the applications top-level windows.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15189>
_______________________________________


More information about the Python-bugs-list mailing list