other Interesting video link. • python MySQL database connecting |#shorts ...
Welcome to my YouTube channel Codeforprogress
This channel videos contents based on coding, programming language and more
Please like, share and subscribe
----Thank you so much for watching videos-
🙏🙏🙏
Instagram par follow karana na bhule
Instagram link
/ jnvashwani
source code
from tkinter import*
import webbrowser
root=Tk()
f1=Frame(root)
f1.pack()
youtubeimg=PhotoImage(file=r"/storage/emulated/0/Download/youtube.png")
googleimg=PhotoImage(file=r"/storage/emulated/0/Download/google.png")
facebookimg=PhotoImage(file=r"/storage/emulated/0/Download/facebook.png")
l1=Label(f1,text="Code For Progrees",fg="red")
l1.pack(pady=80)
l2=Label(f1,text="tkinter icon action button",fg="blue")
l2.pack()
def click1():
webbrowser.open("http://www.youtube.com")
def click2():
webbrowser.open("http://google.com")
def click3():
webbrowser.open("http://facebook.com")
youtubebtn=Button(f1,image=youtubeimg,relief="flat",command=click1)
youtubebtn.pack(side=LEFT,pady=445,padx=45)
googlebtn=Button(f1,image=googleimg,relief="flat",command=click2)
googlebtn.pack(side=LEFT,padx=45)
facebookbtn=Button(f1,image=facebookimg,relief="flat",command=click3)
facebookbtn.pack(side=LEFT,padx=45)
root.mainloop()