Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #button #onclick #message #box #python #tkinter
ADD COMMENT
Topic
Name
8+6 =