Tk Icon - request to Fredrik Lundh

F

Fuzzyman

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.

So a request to Fredrik to build a 2.3 distribution............

Also in his interesting PDF book "(the eff-bot guide to) The Standard
Python Library"

http://www.effbot.org/zone/librarybook-index.htm

he mentions that you can download the example files... yet the link
suggested doesn't point to it and I can't find it... any clues anyone
??

Fuzzball
 
E

Eric Brunel

Fuzzyman said:
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

HTH
 
F

Fuzzyman

Eric Brunel said:
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')
???? I'll try that ;-)
Anyway - thanks for the help - once I work out the proper Tkinter
format then I'm sure it will work.........

Fuzzy
 
E

Eric Brunel

Fuzzyman said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,947
Members
47,498
Latest member
yelene6679

Latest Threads

Top