easiest way to open web link with button in python,code in description #short #python #programming

preview_player
Показать описание
easiest way to open web link with button in python,code in description #short #python #programming :

from tkinter import *
from PIL import ImageTk , Image
import webbrowser as ob

app = Tk()
img = ImageTk.PhotoImage(op_res)
lab_back = Label(app , image = img)

def youtube_clicked():

def google_clicked():

#google_text
text = Label(app , text = 'Google' , font = ('Oswald',45))

#creat an entry
entry = Entry(app ,font = ('Arial',25), bd = 4 )

#create google button
btn_google = Button(app ,command = google_clicked , text = 'search on google',font = ('Oswald',15) , bg ='#6699E8')

#create youtube btn
btn_youtube = Button(app ,command = youtube_clicked , text = 'search on Youtube',font = ('Oswald',15) , bg ='#C51010')

Рекомендации по теме
visit shbcf.ru