tags:

views:

1120

answers:

2

Does anybody know how to make the icon not show up? I'm looking for a way to have no icon at all. (Not a replacement)

A: 

As far as I know, the closest you will get to a "blank" icon is using one that's the same color as the window title bar. But then again a lot of users use different color themes, so it won't go over very well.

However if you use py2exe you can use something like Resource Hacker to swap the icon. But in the python programs text state, the best you can do is replace. Sort of how Jar files use the java icon, tkinter apps will have the TK icon. After all...like java, your app is being translated by an intermediate program. Since another program is running your code, you have to modify that other program. Luckily python/tk is a bit more flexible than the JVM in terms of icons so you can replace the icon. But removing it entirely isn't currently an option.

-John

John T
+4  A: 

On windows:

Step one: Create a transparent icon using either an icon editor, or a site like http://www.rw-designer.com/online_icon_maker.php Save it as "transparent.ico"

Step two:

from Tkinter import *

tk = Tk()
tk.iconbitmap(default='transparent.ico')
Label(tk, text='Window with transparent icon.').pack()

tk.mainloop()

In unix something similar, but using an xbm icon.

Stobor