By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,402 Members | 1,236 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,402 IT Pros & Developers. It's quick & easy.

Tkinter question: how to the red "Tk" window title bar icon?

P: n/a
Hi, I'm using Tkinter and would like to know how to replace the red "Tk"
logo in the left corner of the title bar of the root window with some other
icon.

Another question for curiosity's sake:

I've often seen Tkinter referred to as the "standard" Python GUI. I assume
that this is because it may be the oldest and perhaps the most
cross-platform. Is that all that can be said for it? I've already heard
about the Tkinter interpretive overhead, but given the amazing increase in
CPU speeds recently, I wave my paw and just say "Bah!" (something I learned
from Dogbert). Any other comments?

Thanks in advance for any aid and comfort.


Jul 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"John Benson" <js******@bensonsystems.com> schreef:
I've often seen Tkinter referred to as the "standard" Python GUI. I
assume that this is because it may be the oldest and perhaps the most
cross-platform. Is that all that can be said for it?


Tkinter is included with official Python releases, other GUI toolkits have
to be installed separately...

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #2

P: n/a
"John Benson" <js******@bensonsystems.com> wrote in
news:ma*************************************@pytho n.org:
Hi, I'm using Tkinter and would like to know how to replace the red
"Tk" logo in the left corner of the title bar of the root window with
some other icon.

Another question for curiosity's sake:

I've often seen Tkinter referred to as the "standard" Python GUI. I
assume that this is because it may be the oldest and perhaps the most
cross-platform. Is that all that can be said for it? I've already
heard about the Tkinter interpretive overhead, but given the amazing
increase in CPU speeds recently, I wave my paw and just say "Bah!"
(something I learned from Dogbert). Any other comments?

Thanks in advance for any aid and comfort.


Try hackicon if you are on Windoze
http://sourceforge.net/projects/hackicon/
Jul 18 '05 #3

P: n/a
Howard Lightstone wrote:
"John Benson" <js******@bensonsystems.com> wrote in
news:ma*************************************@pytho n.org:

Hi, I'm using Tkinter and would like to know how to replace the red
"Tk" logo in the left corner of the title bar of the root window with
some other icon.

Another question for curiosity's sake:

I've often seen Tkinter referred to as the "standard" Python GUI. I
assume that this is because it may be the oldest and perhaps the most
cross-platform. Is that all that can be said for it? I've already
heard about the Tkinter interpretive overhead, but given the amazing
increase in CPU speeds recently, I wave my paw and just say "Bah!"
(something I learned from Dogbert). Any other comments?

Thanks in advance for any aid and comfort.

Try hackicon if you are on Windoze
http://sourceforge.net/projects/hackicon/


On reasonably recent versions of tcl/tk, the methods iconbitmap and iconmask on
instances of Toplevel (or Tk) should work on Unices and Windows. See the
corresponding commands for tk at:
http://www.tcl.tk/man/tcl8.4/TkCmd/wm.htm

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

Jul 18 '05 #4

P: n/a
Hi,

I know how to use dnd between two Tkinter windows
but do not know if it is possible to receive a dnd call when dragging a
file/folder icon from a window manager (e.g. winxp explorer, nautilus...)
to a Tk window?

/vr

Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.