On 08-Nov-11 00:39, Alan Gauld wrote:
On 08/11/11 04:30, Nathaniel Trujillo wrote:
I just wrote the following GUI application. How do I get rid of the 7k
in the upper left hand corner and how to I put other stuff there like
say a picture of someone. Thanks for the help.

If you are using Windows I don't think you can, due to a bug in the
underlying Tk libraries. If you are using Linux/MacOS then there is a
function to replace the control icon.

I can't recall what it is, but its similar to the one used for setting
the title text on the Window, one of the wm_xxxxx calls.

But you might get a better response asking on the Tkinter mailing list...


I have an app I'm developing and running successfully on Windows (as well as OSX and Linux). At least in this case it is able to replace the application icon in place of the default "TK" one. The code I use is:

root = Tkinter.Tk()
root.iconbitmap(default=ico_image_filename)

(on Linux I use root.iconbitmap(bitmap='@'+xbm_filename))


--
Steve Willoughby / st...@alchemy.com
"A ship in harbor is safe, but that is not what ships are built for."
PGP Fingerprint 4615 3CCE 0F29 AE6C 8FF4 CA01 73FE 997A 765D 696C
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to