title = "COMPANY ANNOUNCEMENT" #edit here

message = """COMPANY ANNOUNCEMENT
1) ....
2) ....
....
""" #edit here



import Tkinter as tk

class GUI:
    def __init__(self,title,message):
        self.root = tk.Tk()
        self.root.minsize(450, 100)
        self.root.eval('tk::PlaceWindow . center')
        self.root.title(title)
        self.label = tk.Label(text=message,font=("Arial", 10))
        self.label.pack(padx=5,pady=5)
        self.b1=tk.Button(self.root, text="ok", command=self.on_click, height = 1, width = 5, highlightbackground='#3E4149')
        self.b1.pack(padx=10,pady=10)
        self.root.protocol("WM_DELETE_WINDOW", self.on_closing)
        self.root.mainloop()
    
    def on_click(self):
        self.root.destroy()
        print("user clicked on the ok button")
    
    def on_closing(self):
        self.root.destroy()
        print("user closed the window without clicking on the ok button")

GUI(title,message)