RE: Adding Icon To Tkinter Window - Followup

2016-03-09 Thread Joaquin Alzola
> root.wm_iconphoto(True, img) What are the images format allowed? This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt. -- https://mail.python.org/mailm

Re: Adding Icon To Tkinter Window - Followup

2016-03-09 Thread Serhiy Storchaka
On 06.03.16 18:30, Wildman via Python-list wrote: That does not work... $ ./makexface.py Traceback (most recent call last): File "./makexface.py", line 236, in root.wm_iconphoto(True, img) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1897, in __getattr__ return getattr(self

Re: Adding Icon To Tkinter Window

2016-03-09 Thread Rick Johnson
On Saturday, March 5, 2016 at 3:39:00 PM UTC-6, Terry Reedy wrote: > No single simple statement work for all situations. You should have > specified OS, Python version, and tcl/tk version. (IDLE's Help -> About > IDLE displays full tk version). Yes, because Tkinter is not as cross-platform as

Re: Adding Icon To Tkinter Window

2016-03-09 Thread Rick Johnson
On Saturday, March 5, 2016 at 12:08:27 PM UTC-6, Grant Edwards wrote: > You'll have to be a lot more specific about what you mean by "add an > icon to a window". Do you just want to display an .ico file within a > window? I think he wants to use his *OWN* icon on a window's title bar, instead of

Re: Adding Icon To Tkinter Window - Followup

2016-03-06 Thread Wildman via Python-list
On Sun, 06 Mar 2016 10:16:55 +0100, Christian Gollwitzer wrote: > 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.cal

Re: Adding Icon To Tkinter Window - Followup

2016-03-06 Thread Christian Gollwitzer
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. T

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
I apologize to the group for my lack of information in my original post. I will do better in the future. I very much want to remain in good standing in this group because of all the knowledgeable people here. Thanks again to everyone that replied and helped me solve my problem. -- GNU/Linux u

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 16:38:08 -0500, Terry Reedy wrote: > On 3/5/2016 11:47 AM, Wildman via Python-list wrote: >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Thanks. > > No single simple state

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 21:55:40 +0200, Serhiy Storchaka wrote: > On 05.03.16 18:47, Wildman via Python-list wrote: >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Thanks. > > On Windows: > >

Re: Adding Icon To Tkinter Window - Followup

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 19:36:19 +0100, Christian Gollwitzer wrote: > Am 05.03.16 um 19:10 schrieb Wildman: >> On Sat, 05 Mar 2016 10:47:09 -0600, Wildman wrote: >> >>> Anybody have the correct method of adding an icon to a >>> window? I have found several code examples on the web >>> but they all re

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Terry Reedy
On 3/5/2016 11:47 AM, Wildman via Python-list wrote: Anybody have the correct method of adding an icon to a window? I have found several code examples on the web but they all result in an error. Thanks. No single simple statement work for all situations. You should have specified OS, Python

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Serhiy Storchaka
On 05.03.16 18:47, Wildman via Python-list wrote: Anybody have the correct method of adding an icon to a window? I have found several code examples on the web but they all result in an error. Thanks. On Windows: root.wm_iconbitmap(default='myapp.ico') .ico-file can contain several icons

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 18:38:57 +, Mark Lawrence wrote: > On 05/03/2016 16:47, Wildman via Python-list wrote: >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Thanks. >> > > Would you please b

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 18:08:15 +, Grant Edwards wrote: > On 2016-03-05, Wildman wrote: > >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Thanks. > > You'll have to be a lot more specific a

Re: Adding Icon To Tkinter Window - Followup

2016-03-05 Thread Christian Gollwitzer
Am 05.03.16 um 19:10 schrieb Wildman: On Sat, 05 Mar 2016 10:47:09 -0600, Wildman wrote: Anybody have the correct method of adding an icon to a window? I have found several code examples on the web but they all result in an error. Thanks. I found this and it works in Linux but only with bla

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Mark Lawrence
On 05/03/2016 16:47, Wildman via Python-list wrote: Anybody have the correct method of adding an icon to a window? I have found several code examples on the web but they all result in an error. Thanks. Would you please be kind enough to read this http://www.catb.org/esr/faqs/smart-questions

Re: Adding Icon To Tkinter Window - Followup

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 10:47:09 -0600, Wildman wrote: > Anybody have the correct method of adding an icon to a > window? I have found several code examples on the web > but they all result in an error. Thanks. I found this and it works in Linux but only with black and white xbm images (I would pre

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Grant Edwards
On 2016-03-05, Wildman wrote: > Anybody have the correct method of adding an icon to a > window? I have found several code examples on the web > but they all result in an error. Thanks. You'll have to be a lot more specific about what you mean by "add an icon to a window". Do you just want to

Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
Anybody have the correct method of adding an icon to a window? I have found several code examples on the web but they all result in an error. Thanks. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list