Try this:
# Import required packages
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
# Create a message box
def helloCallBack():
tkMessageBox.showinfo("Click Me", "Welcome to my Page")
# Create a button
B = Tkinter.Button(top, text ="Click Me", command = helloCallBack)
B.pack()
top.mainloop()