from tkinter import *

top = Tk()


def helloCallBack():
    tkMessageBox.showinfo("Hello Python", "Hello Runoob")


B = Button(top, text="搜素", command=helloCallBack)

B.pack()
top.mainloop()
aafb95c8e209623b5b57fbd48dd0e50dd19a99a6
<mask token>


def helloCallBack():
    tkMessageBox.showinfo('Hello Python', 'Hello Runoob')


<mask token>

<mask token>


def helloCallBack():
    tkMessageBox.showinfo('Hello Python', 'Hello Runoob')


<mask token>
B.pack()
top.mainloop()

<mask token>
top = Tk()


def helloCallBack():
    tkMessageBox.showinfo('Hello Python', 'Hello Runoob')


B = Button(top, text='搜素', command=helloCallBack)
B.pack()
top.mainloop()

from tkinter import *
top = Tk()


def helloCallBack():
    tkMessageBox.showinfo('Hello Python', 'Hello Runoob')


B = Button(top, text='搜素', command=helloCallBack)
B.pack()
top.mainloop()

from tkinter import *

top = Tk()


def helloCallBack():
    tkMessageBox.showinfo("Hello Python", "Hello Runoob")


B = Button(top, text="搜素", command=helloCallBack)

B.pack()
top.mainloop()