Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 05 Mar 2016 12:10:00 -0600 From: Wildman Subject: Re: Adding Icon To Tkinter Window - Followup Newsgroups: comp.lang.python References: Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAACooKFZVVbCwsIBAQE hICDT5/Lzy8vIvr56dniM6ueMAAACdUlEQVQ4jXXTT2/aMBgGcKsKHyBkBXLE4I0cjQVSbimyD9wgS9TmiLJZ4whT9dJjK01Zb03In+bb7gXWFSjzBSk/ntdW8piI/yxy/iA1rYvg0uhiosn87SUYhlKq7UfghcmkSj+A3QVYBTI6B7eNz1ehd9jlCIa+mVy/Mi+cnwGnzZv1XeEp1juDqhhV7WvPd7IT4DUodw7P0nDME8gq2MDGbgZEnY7KbjcwKJSPUB8DL2TmGWrWOE/wXAXS77w08vNEf2Ka8OvFYIREZ/DYefrxIkNCpifAJj/r0uxPAkKUdQQuu6kXrhn6HiHG9jhBHUiTJw+PSxrdPXCKv6IZ0Ch5ZJ5CMA6Qapt1eR340mcBMRjOmu+At7TWdg39UKrAI4rO3kCY42VYQa48KQm5e57tz7tPiNxoQy4lDmkka0LIxEJw+VjnxmqwVtgEeQt9BCwEEaWO9SeStWHwG1gX1hgjco6Ae4uRbFaQVA8AD7gDJrqCuHgmZ9EvOtC8GwDYbA+ORYalXk4X/XTdebSdDmyyXcSILOIu9CiKndfiKsFaATzt9+jtR1G6KGt7+lyBCdD3cEXWDmLbWY5b4+9SsS/wi0gpQ6wv4Qj1UrfGupCyDTMjDH1n96HsbczTpS5tWoYhPHgNn1JrB71vJne4o1Md1xTuQ+Xs+yZI7coAb0vLdth8Dmvq1+bhGpR85FtZq5bSp224t//eTYQY30mcX6nusAJY994+NTH1Qi8DOU05vpBV9PUfuJ/1Eqt0g2XHwO07iOYBhglO2pjbdxDlIvcm1nCSwIZ1xRHwOMCy8qz9QC1xDMI9/I8GPXEKb11MxWU4XX8AGMcdHyUO/GkAAAAASUVORK5CYII= Organization: Wildman Productions X-No-Trolls: Yes X-OS-Version: SolydX 8 x86_64 GNU/Linux User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: Date: Sat, 05 Mar 2016 12:10:00 -0600 Lines: 22 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-bFnlXMsEbcA32BSzyX/cBULwhKfa1ObVhXaCwEV/UJ0DVF19zn+Nv/d0Fc5tu+GUC3uMvOeTLvaqAcd!0yBQsTPKIeveN8+XHdOTCJA60lXjVKCF5m2tx91IqxVOkovBcevDR1n5wt99XWRNiYAg0j/vHkA= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3003 X-Received-Bytes: 3115 X-Received-Body-CRC: 703563702 Xref: csiph.com comp.lang.python:104107 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 prefer color): root.wm_iconbitmap('@myicon.xbm') I found some info in a forum that talked about putting a color icon in a Label on a separate window and passing that to the main window as the icon. But there were no code examples or explanations. So far I have not been able to figure it out. I would appreciate any help. -- GNU/Linux user #557453 "Be at war with your vices, at peace with your neighbors, and let every new year find you a better man." -Benjamin Franklin