stop_button = tk.Button(root, text="Stop Script", command=stop_script) stop_button.pack()

def stop_script(): # Your script's stop logic here messagebox.showinfo("Script Stopped", "The script has stopped.")

import tkinter as tk from tkinter import messagebox

def start_script(): # Your script's start logic here messagebox.showinfo("Script Started", "The script has started.")