1from tkinter import messagebox
2messagebox.showinfo(title="Error", message="No Data File Found.")
1import tkinter as tk
2
3def popupmsg(msg, title):
4 root = tk.Tk()
5 root.title(title)
6 label = ttk.Label(root, text=msg)
7 label.pack(side="top", fill="x", pady=10)
8 B1 = tk.Button(root, text="Okay", command = root.destroy)
9 B1.pack()
10 popup.mainloop()