473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Tk Icon - request to Fredrik Lundh

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
Jul 18 '05 #1
3 2533
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

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

Jul 18 '05 #2
Eric Brunel <er*********@N0SP4M.com> wrote in message news:<bu**********@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')
???? 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
HTH

Jul 18 '05 #3
Fuzzyman wrote:
Eric Brunel <er*********@N0SP4M.com> wrote in message news:<bu**********@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

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Igor V. Rafienko | last post by:
Hi, I am trying to understand how cElementTree's clear works: I have a (relatively) large XML file, that I do not wish to load into memory. So, naturally, I tried something like this: from...
0
by: Chris Martinez via .NET 247 | last post by:
I don't know if you ever got this resolved but I would becurious. The reason you can't get the folder icons is becauseyou are using SHGFI_FILE_ATTRIBUTES. Take that out and use thevalue of 0...
1
by: Fredrik Melin | last post by:
Hi, I am trying to retrieve data posted by a old ASP page into my ASPX application. But for some reason only ASCII 0-127 chars gets into the request (retreiving it with Request("NAME") ) ...
19
by: George Sakkis | last post by:
It would be useful if list.sort() accepted two more optional parameters, start and stop, so that you can sort a slice in place. In other words, x = range(1000000) x.sort(start=3, stop=-1) ...
36
by: python | last post by:
I have new a list , when it hava large number of values, I wonna to delete all the values in it,how to do? And, if a list have 801 values, I want to get its values index from 300 to 400, could use...
9
by: Christopher Carey | last post by:
I'd like to be able to control the icon presented in the upper left corner of the browser dynamically, based upon the page I'm serving. Is there a way to do this?
24
by: Peter Maas | last post by:
The Python FAQ 1.4.5 gives 3 reasons for explicit self (condensed version): 1. Instance variables can be easily distinguished from local variables. 2. A method from a particular class can be...
2
by: dj | last post by:
Hello All, I am trying to get in touch with Mr. Lundh. I am looking for exmaple code regarding the use of elementtree. I have read through most of the examples on http://effbot.org and I am...
2
by: =?ISO-8859-1?Q?Andr=E9?= | last post by:
Hi everyone, I would like to implement a parser for a mini-language and would appreciate some pointers. The type of text I would like to parse is an extension of: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.