Tkinter Stop Program Execution Button Tkinter Stop Program Execution Button tkinter tkinter

Tkinter Stop Program Execution Button


Create a new function where you can define a new tkinter screen which will appear when user press NO button See

def no_button_function():   # function that will be called when user pressed no button    new_window = tk.Toplevel(window)    new_window.title('See You Next Time')    # create the good bye message using labels and buttons accordingly 

and now pass this function to NO buttton

btn_no = tk.Button(master=window, text="No", command=no_button_function)btn_no.grid(row=2, column=2, sticky="nsew")

Hope You Got This.Tick Mark If Satisfied