title = "How to update Microsoft Teams" #edit here

message = "Please click the below link to learn How to update Microsoft Teams" #edit here

link = r"https://marketsplash.com/tutorials/microsoft-teams/how-to-update-microsoft-teams/" #give here the link


import Tkinter as tk
import webbrowser

class GUI:
    def __init__(self,title,message,link):
        self.root = tk.Tk()
        self.root.eval('tk::PlaceWindow . center')
        self.root.title(title)
        self.label = tk.Label(text=message,font=("Arial", 10))
        self.label.pack(padx=10,pady=10)
        self.Link = tk.Label(self.root, text=link,font=("Arial", 12), fg="blue", cursor="hand2")
        self.Link.pack(padx=10)
        self.Link.bind("<Button-1>", lambda e: self.open_url(link))
        self.root.protocol("WM_DELETE_WINDOW", self.on_closing)
        self.change_color()
        self.root.mainloop()
    
    def open_url(self,url):
        webbrowser.open_new(url)
        self.root.destroy()
        print("user clicked on the link")
    
    def on_closing(self):
        self.root.destroy()
        print("user closed the window without clicking the link")
    
    def change_color(self):
        self.current_color = self.Link.cget("foreground")
        self.next_color = "red" if self.current_color == "blue" else "blue"
        self.Link.config(foreground=self.next_color)
        self.root.after(1000, self.change_color)

GUI(title,message,link)