Message165290
| Author |
mark |
| Recipients |
Drew.French, gpolo, mark, terry.reedy |
| Date |
2012年07月12日.09:06:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342084011.17.0.175871135986.issue15189@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年07月12日 09:06:51 | mark | set | recipients:
+ mark, terry.reedy, gpolo, Drew.French |
| 2012年07月12日 09:06:51 | mark | set | messageid: <1342084011.17.0.175871135986.issue15189@psf.upfronthosting.co.za> |
| 2012年07月12日 09:06:50 | mark | link | issue15189 messages |
| 2012年07月12日 09:06:50 | mark | create |
|