第27337题 单选题
关于Python Tkinter库的Button组件,下列说法正确的是?

以下是一段Tkinter Button组件的示例代码:

import tkinter as tk
root = tk.Tk()
def say_hello():
    print("Hello!")
# 创建按钮组件
btn = tk.Button(root, text="点击我", command=say_hello, state=tk.DISABLED)
btn.pack()
root.mainloop()

结合该代码判断下列选项的正确性:

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析