togglebutton.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:pkinter 作者: DeflatedPickle 项目源码 文件源码
def __init__(self, parent, text_on="On", text_off="Off", *args):
        ttk.Checkbutton.__init__(self, parent, style="TButton", *args)
        self.parent = parent
        self._text_on = text_on
        self._text_off = text_off

        self._variable = tk.IntVar()
        self.configure(variable=self._variable, command=self._activate)

        self._activate()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号