# Tkinter教程之Checkbutton篇 # Checkbutton又称为多选按钮,可以表示两种状态:On和Off,可以设置回调函数,每当点击此按钮时回调函数被调用 ''' 1.一个简单的Checkbutton例子 ''' # 创建一个Checkbutton,显示文本为"python" from Tkinter import * root = Tk()Checkbutton(root,text = ' python ' ).pack()root.mainloop() ''' 2.设置Checkbutton的回调函数 ''' from Tkinter import * def callCheckbutton():