checkbutton
状态值
具有on和off两种状态
设置状态值为0,1
1 | on为1, off为0 |
设置状态值为设置的值
1 | stringVar = StringVar() |
获取复选框文本值
1 | value = checkbutton['text'] |
具有on和off两种状态
1 | on为1, off为0 |
1 | stringVar = StringVar() |
1 | value = checkbutton['text'] |
本文标题:tkinter之checkbutton
文章作者:TTYONG
发布时间:2020年05月08日 - 22:05
最后更新:2022年03月07日 - 20:03
原始链接:http://tianyong.fun/tkinter%E4%B9%8Bcheckbutton.html
许可协议: 转载请保留原文链接及作者。
微信支付
支付宝