[New-bugs-announce] [issue15189] tkinter.messagebox does not use the application's icon

Mark Summerfield report at bugs.python.org
Tue Jun 26 09:19:48 CEST 2012


New submission from Mark Summerfield <mark at qtrac.eu>:

The tkinter.messagebox functions, e.g., askyesno(), do not use the application's icon (if it has one). Nor do they accept a bitmapicon option, so ISTM that it is "impossible" to set one.

The same is true of tkinter.dialog, but for that it is easy enough to write one's own replacement with the code like this:

        try:
            tkinter._default_root.iconbitmap(iconName)
        except tk.TclError as err:
            print(err)

(where iconName is "path/to/icon.ico" on windows, "@path/to/icon.xbm" on Unix; and this isn't done on Mac).

----------
components: Tkinter
messages: 164053
nosy: mark
priority: normal
severity: normal
status: open
title: tkinter.messagebox does not use the application's icon
versions: Python 3.2

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


More information about the New-bugs-announce mailing list