Python Tkinter中Button组件绑定点击事件触发函数的参数是哪一个?

vg944380 单选题 共 个子题

为Python小型游戏设计界面,需要点击后显示游戏开始消息的按钮。

A
button = Button(root, text="开始游戏", command=startGame)
B
button = Button(root, text="开始游戏", onclick=startGame)
C
button = Button(root, text="开始游戏", action=startGame)
D
button = Button(root, text="开始游戏", event=startGame)
正在加载题目数据…
已答 /
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析
讨论
发布
登录后参与讨论 立即登录
发布讨论需先绑定并验证手机号 去绑定手机号
加载中…
我
我
回复 @
回复 @
发送
还没有人讨论,来发表第一条吧