Python——Radiobutton,Checkbutton参数说明

时间:2023-03-09 15:30:07
Python——Radiobutton,Checkbutton参数说明

anchor  : 文本位置;

background(bg) : 背景色;

foreground(fg) :前景色;

borderwidth :  边框宽度;

width   : 组件的宽度;

height  :    组件高度;

bitmap  :  组件中的位图;

image  :   组件中的图片;

font     :    字体;

justify   :  组件中多行文本的对齐方式;

text     :   指定组件的文本;

value    :  指定组件被选中中关联变量的值;

variable   : 指定组件所关联的变量;

indicatoron  :  特殊控制参数,当为0时,组件会被绘制成按钮形式;

textvariable : 可变文本显示,与StringVar等配合着用