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

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 :: python read string between two substrings 
Python :: show image in tkinter pillow 
Python :: how to move a column to the beginning in dataframe 
Python :: export data csv 
Python :: python resize image 
Python :: make a list from 0 to n python 
Python :: blender python set object to active by name 
Python :: python decrease gap between subplot rows 
Python :: flask cors 
Python :: python regex replace all non alphanumeric characters 
Python :: python rotate pdf pages 
Python :: how to convert datetime to jdatetime 
Python :: how to run python script as admin 
Python :: pandas drop all columns except certain ones 
Python :: pandas add index 
Python :: get_object_or_404 
Python :: shuffle dataframe python 
Python :: classification report scikit 
Python :: selenium change window size 
Python :: pandas add dataframe to the bottom of another 
Python :: python datetime remove timezone 
Python :: path sum with python 
Python :: wait function python 
Python :: how to create a keylogger in python 
Python :: python time now other timezone 
Python :: open image from link python 
Python :: count missing values by column in pandas 
Python :: pandas group by month 
Python :: install models python 
Python :: python infinite value 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =