how to change windows icon tkinter
from tkinter import *
root = Tk()
photo = PhotoImage(file = "image.png")
root.iconphoto(False, photo)
how to change windows icon tkinter
from tkinter import *
root = Tk()
photo = PhotoImage(file = "image.png")
root.iconphoto(False, photo)
Tkinter button icons
import tkinter as tk
from tkinter import *
from PIL import Image, ImageTk
root = tk.Tk()
def change_i():
if sound_btn.image == icon:
#start_recording()
sound_btn.config(image=icon2)
sound_btn.image = icon2
else:
#stop_recording()
sound_btn.config(image=icon)
sound_btn.image = icon
icon = PhotoImage(file='dh.png')
icon2 = PhotoImage(file='stop.png')
sound_btn = tk.Button(root, image=icon, width=70,height=60,relief=FLAT ,command=change_i )
sound_btn.image = icon
sound_btn.grid(row=0, column=1)
root.mainloop()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us