单选题

有如下Python程序段:

import tkinter as tk
from tkinter import messagebox
root= tk.Tk() 
root.title('演示窗口')
root.geometry("300x100+630+80") 
btn1 = tk.Button(root) 
btn1["text"]= "点击"
btn1.pack() 
def call(event):
    messagebox.showinfo('窗口名称','点击成功')
btn1.bind('<Button-1>',call)

执行下面代码,说法正确的是?( )

A

按钮上显示的内容为“点击”

B

窗口中有两个以上的按钮

C

点击按钮显示弹窗,弹窗内容为‘演示窗口’

D

按钮和call没有绑定

赣ICP备20007335号-2