Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to change windows icon tkinter

from tkinter import *

root = Tk()
photo = PhotoImage(file = "image.png")
root.iconphoto(False, photo)
Comment

tkinter app icon

import tkinter as tk

root = tk.Tk()
root.iconbitmap("myIcon.ico")
Comment

Change tkinter app icon

'''To change the icon you should use iconbitmap or wn_iconbitmap
I'm under the impression that the file you wish to change it to must be an ico file.'''

import tkinter as tk

root = tk.Tk()
root.iconbitmap("myIcon.ico")
Comment

PREVIOUS NEXT
Code Example
Python :: maxsize in python 
Python :: python if in range 
Python :: checkbutton tkinter example 
Python :: Accessing elements from a Python Dictionary 
Python :: python convert a list to dict 
Python :: 3d array numpy 
Python :: odd or even python 
Python :: difference between supervised and unsupervised learning 
Python :: python get first character of string 
Python :: python diagonal sum 
Python :: python merge pdf files into one 
Python :: python default dic 
Python :: initialise a 2d array python 
Python :: en_core_web_sm 
Python :: virtual env python 2 
Python :: Python t date from a timestamp 
Python :: python iterate list 
Python :: How to wait a page is loaded in Python Selenium 
Python :: get required packages from python project 
Python :: python get all combinations of list 
Python :: how to write and read dictionary to a file in python 
Python :: bitcoin wallet python 
Python :: list variables in session tensorflow 1 
Python :: if else one line python 
Python :: how call module in the same directory 
Python :: how to run terminal commands in python 
Python :: changing the port of django port 
Python :: fasttext python 
Python :: max in a list python 
Python :: drop all unnamed columns pandas 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =