user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -


is there way change default logo, python logo, appears in window's task bar?

notice have replaced default tk logo used appear in application window.

i using windows 7 , python 2.6 , developing gui of tkinter.

you can using winico tk extension package. winico package can used add system tray icons tk programs.

the following sample shows 1 way change runtime application icon. note need provide .ico file suitable sizes of icons in on command line , need use pythonw. not change taskbar icon console when running python script. test extracted winico0.6 package python\tcl\winico0.6 folder package require winico work , ran code below using pythonw winico_test.py path\to\some\ico\file.ico.

import sys tkinter import *  def main(argv):     root = tk()     root.update()     root.tk.call('package','require','winico')     id = root.tk.call('winico','createfrom',argv[1])     root.tk.call('winico','setwindow',root,id,'big',0)     root.mainloop()     return 0  if __name__=='__main__':     sys.exit(main(sys.argv)) 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -