Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104126
| From | Christian Gollwitzer <auriocus@gmx.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Adding Icon To Tkinter Window - Followup |
| Date | 2016-03-06 10:16 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <nbgscf$tlf$1@dont-email.me> (permalink) |
| References | <tIadnY8e89YQkEbLnZ2dnUU7-LHNnZ2d@giganews.com> <qMKdnSPI4_llvUbLnZ2dnUU7-eOdnZ2d@giganews.com> <nbf8pc$783$1@dont-email.me> <bKOdnRxActZ2WEbLnZ2dnUU7-IudnZ2d@giganews.com> |
Am 06.03.16 um 06:53 schrieb Wildman:
> On Sat, 05 Mar 2016 19:36:19 +0100, Christian Gollwitzer wrote:
>> import Tkinter
>> from Tkinter import Tk
>> root = Tk()
>> img = Tkinter.Image("photo", file="appicon.gif")
>> root.call('wm','iconphoto',root._w,img)
>
> The above worked perfectly. Thank you very much.
Then you should try if it works also with the last line replaced as
root.wm_iconphoto(True, img)
(as Serhiy and Terry wrote). My system python which I used to test this
was just too old to wrap iconphoto, yours should be up to date.
Christian
> According to "root.eval('info patchlevel')" I have version 8.6.2.
> PNG worked. That is good because PNG is a common file type for
> Linux icons.
PS: 8.6.2 is from mid 2014, that's OK - though we've had a brand new
release (8.6.5) in February 2016
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Adding Icon To Tkinter Window Wildman <best_lay@yahoo.com> - 2016-03-05 10:47 -0600
Re: Adding Icon To Tkinter Window Grant Edwards <invalid@invalid.invalid> - 2016-03-05 18:08 +0000
Re: Adding Icon To Tkinter Window Wildman <best_lay@yahoo.com> - 2016-03-05 12:47 -0600
Re: Adding Icon To Tkinter Window Rick Johnson <rantingrickjohnson@gmail.com> - 2016-03-09 08:39 -0800
Re: Adding Icon To Tkinter Window - Followup Wildman <best_lay@yahoo.com> - 2016-03-05 12:10 -0600
Re: Adding Icon To Tkinter Window - Followup Christian Gollwitzer <auriocus@gmx.de> - 2016-03-05 19:36 +0100
Re: Adding Icon To Tkinter Window - Followup Wildman <best_lay@yahoo.com> - 2016-03-05 23:53 -0600
Re: Adding Icon To Tkinter Window - Followup Christian Gollwitzer <auriocus@gmx.de> - 2016-03-06 10:16 +0100
Re: Adding Icon To Tkinter Window - Followup Wildman <best_lay@yahoo.com> - 2016-03-06 10:30 -0600
Re: Adding Icon To Tkinter Window - Followup Serhiy Storchaka <storchaka@gmail.com> - 2016-03-09 19:09 +0200
RE: Adding Icon To Tkinter Window - Followup Joaquin Alzola <Joaquin.Alzola@lebara.com> - 2016-03-09 17:14 +0000
Re: Adding Icon To Tkinter Window Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-05 18:38 +0000
Re: Adding Icon To Tkinter Window Wildman <best_lay@yahoo.com> - 2016-03-05 12:50 -0600
Re: Adding Icon To Tkinter Window Serhiy Storchaka <storchaka@gmail.com> - 2016-03-05 21:55 +0200
Re: Adding Icon To Tkinter Window Wildman <best_lay@yahoo.com> - 2016-03-05 23:56 -0600
Re: Adding Icon To Tkinter Window Terry Reedy <tjreedy@udel.edu> - 2016-03-05 16:38 -0500
Re: Adding Icon To Tkinter Window Wildman <best_lay@yahoo.com> - 2016-03-06 00:04 -0600
Re: Adding Icon To Tkinter Window Rick Johnson <rantingrickjohnson@gmail.com> - 2016-03-09 08:41 -0800
Re: Adding Icon To Tkinter Window Wildman <best_lay@yahoo.com> - 2016-03-06 00:09 -0600
csiph-web