We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,661 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Tk logo on GUI window:

Located in the upper, left-hand corner of the GUI window is a small "Tk "; is it possible to get rid of this entirely? It is only a small detail, but a detail none-the-less that I wish to have control over in regards to the final product.

I would also love to be able to change the color\ theme of the window frame, if possible, but from what I know at this point, it may not be possible as it is (may be) default Windows (?).

Thank-you in advance for any insight into this.

4
Contributors
5
Replies
5 Years
Discussion Span
11 Months Ago
Last Updated
7
Views
mattyd
Posting Maven
2,607 posts since Oct 2006
Reputation Points: 105
Solved Threads: 1
Skill Endorsements: 0

Yes you can change the icon to anything you have:

from Tkinter import *
form1 = Tk()
# use an icon file you have in the working folder
form1.wm_iconbitmap('py.ico')
form1.wm_title('Title')
form1.mainloop()

You could create an icon that blends in with the title color, using something like LiquidIcon from www.x2studios.com (it's nice and free).

Ene Uran
Posting Virtuoso
1,830 posts since Aug 2005
Reputation Points: 676
Solved Threads: 255
Skill Endorsements: 7

Yes you can change the icon to anything you have:

from Tkinter import *
form1 = Tk()
# use an icon file you have in the working folder
form1.wm_iconbitmap('py.ico')
form1.wm_title('Title')
form1.mainloop()

You could create an icon that blends in with the title color, using something like LiquidIcon from www.x2studios.com (it's nice and free).

Thank-you very much.

Regards,
sharky_machine

mattyd
Posting Maven
2,607 posts since Oct 2006
Reputation Points: 105
Solved Threads: 1
Skill Endorsements: 0

Yes you can change the icon to anything you have:

from Tkinter import *
form1 = Tk()
# use an icon file you have in the working folder
form1.wm_iconbitmap('py.ico')
form1.wm_title('Title')
form1.mainloop()

You could create an icon that blends in with the title color, using something like LiquidIcon from www.x2studios.com (it's nice and free).

Yes, that worked very well. Thanks again. ;)

It does seem to slow down the actual opening of the window when running the code and displaying the GUI frame.

I really just wish to get rid of the "Tk" logo entirely-- no logo at all, just silver, Window theme. I tried modifying the code you suggested, but it just gave an error on Run.

I will work on this more in the future nearer to program completion.

Please let me know if you know how to remove the icon (of any type) completely.

Regards,
sharky_machine

mattyd
Posting Maven
2,607 posts since Oct 2006
Reputation Points: 105
Solved Threads: 1
Skill Endorsements: 0

Create a fully transparent .ico file with liquidIcon and save it use root.wm_iconbitmap('whatever you called your blank icon here.ico') and it should do the trick.

_-_-_-
Newbie Poster
1 post since Jul 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

The Eric5 IDE for Python has a built-in Icon Editor
(Extras/Tools/Icon Editor)

ZZucker
Master Poster
784 posts since Jan 2008
Reputation Points: 342
Solved Threads: 60
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0730 seconds using 2.69MB