Tk Icon - request to Fredrik Lundh

Eric Brunel eric.brunel at N0SP4M.com
Tue Jan 20 09:59:16 CET 2004


Fuzzyman wrote:
> Eric Brunel <eric.brunel at N0SP4M.com> wrote in message news:<bugqir$lds$1 at news-reader2.wanadoo.fr>...
> 
>>Fuzzyman wrote:
>>
>>>There is a very interesting (and potentially useful) program on the
>>>effbot website - called Tkicon.
>>>
>>>http://www.effbot.org/downloads/
>>>
>>>Unfortuantely the last supported version of python is 2.1
>>>I've seen a few people asking, but never an answer, on Python 2.3
>>>support.
>>
>>This utility should not be needed anymore if you're using a recent version of 
>>tcl/tk: the method wm_iconbitmap on toplevel's, that didn't work on earlier 
>>versions of tk on Windows, now works without problem. You should specifiy a .ico 
>>or .icr file name as its argument. See the documentation for the corresponding 
>>tk command at:
>>http://www.tcl.tk/man/tcl8.3/TkCmd/wm.htm#M15
>>
> 
> 
> Hmmm..... reading the documentation makes things less clear :-)
> 
> How about :
> 
> test = tkinter.Toplevel(wm_iconbitmap='test.ico') 

Nope:

test = Tkinter.Toplevel()
test.wm_iconbitmap('test.ico')

All tcl/tk wm commands map to the corresponding wm_... *method* on Tkinter 
objects. It indeed takes some time to get used to...

HTH
-- 
- Eric Brunel <eric dot brunel at pragmadev dot com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com




More information about the Python-list mailing list