button click and get message on python tkinter code example
Example: button onclick message box in python tkinter
import tkinter.messagebox
def onClick():
tkinter.messagebox.showinfo("Title goes here","Message goes here")
root = tkinter.Tk()
button = tkinter.Button(root,text = "Click Me", command = onClick)
button.pack()
root.mainloop()