目录
四、案例2、 点击按钮通过configure属性修改Label的颜色
一、Label简介
- 什么是 Python Tkinter 标签?Label是 Python Tkinter 中最简单的控件 ,Label 用于在屏幕上输出简单的文本行。
- 它的更高级用途包括在其中显示图像。
- 您有多种操作文本的选项,例如给它加下划线,或者甚至只是文本的某个部分。
二、Label语法及其参数
Syntax:
label = Label(Master, option1, option2.......)
No. | Option | Description |
---|---|---|
1 | anchor | Controls the position of the text when the widget has more space than the text requires. Default is CENT |