'''
Created on 2017年9月8日
@author: Nick
'''
'''Tkinter之Checkbutton篇'''
#_*_coding:utf-8_*_
import tkinter as tk
from tkinter import *
#回调函数
def callCheckbutton():
print('Your check this button!')
#回调函数,改变v的值,即改变Checkbutton的显示值
def changeCheckbuttoText():
e.set('Tkinker')
if __name__ == '__main__':
root = tk.Tk()
root.wm_title('Checkbutton')
root.geometry("1800x800+120+100") #设置窗口大小 并初始化桌面位置
root.resizable(width = True,height = True) #宽不可变 高可变 默认True
#1、设置Checkbutton的回调函数
# Checkbutton又称为多选按钮,可以表示两种状态:On和Off,可以设置回调函数,每当点击此按钮时回调函数被调用
# 不管Checkbutton的状态如何,此回调函数都会被调用
fram1 = Frame(root)
Che