<br><br><div><span class="gmail_quote">On 1/16/07, <b class="gmail_sendername">Alexander Belchenko</b> <<a href="mailto:bialix@ukr.net">bialix@ukr.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Jan Hudec пишет:<br><br>> Well, iconbitmap expects a loaded bitmap (or pixmap). You can try iconname,<br>> but I expect you'll have to load the image file first. Note, that you need
<br>> iconmask too, because pixmap does not contain transparency information.<br>><br>> Besides, X build of Tk may not understand .ico format, so you may need to use<br>> png or xpm.</blockquote><div><br>thanks for the tips, after a bit of googling I got it working with a .gif icon and PhotoImage
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">><br>Michael Lange in Tkinter-discuss mailing list wrote:<br>> Hi Alexander,
<br>><br>> on linux you will need the fully qualified path to an .xbm bitmap preceded by an "@",<br>> like self.root.iconbitmap('@/usr/share/icons/olive-branches.xbm').<br>><br>> I hope this helps
</blockquote><div><br>Trying this again this also worked!<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">><br>> Michael<br>
<br>I need some time to implement this. Right now I just disable icon on non-windows<br>for compatibility.</blockquote><div><br></div></div>I attached some bundles which both work on my pc.<br>Try the xbm icon one first, if that works on windows, I think its platform independent enough.
<br>I also attached my first approach with a .gif icon for in case the xbm one does not work on windows for what ever reason.<br>(They are independant, as I reverted my first attempt before trying again)<br><br>regards<br>
marius<br><br clear="all"><br>-- <br><br><br><br>I code therefore I am.