Message164053
| Author |
mark |
| Recipients |
mark |
| Date |
2012年06月26日.07:19:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1340695188.66.0.13086714969.issue15189@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月26日 07:19:48 | mark | set | recipients:
+ mark |
| 2012年06月26日 07:19:48 | mark | set | messageid: <1340695188.66.0.13086714969.issue15189@psf.upfronthosting.co.za> |
| 2012年06月26日 07:19:48 | mark | link | issue15189 messages |
| 2012年06月26日 07:19:47 | mark | create |
|