目录
一、Button介绍
- Python Tkinter Button 是一个标准的 Tkinter 控件。
- 按钮用作用户与用户界面交互的一种方式。
- 单击按钮后,程序将触发一个操作。
- Tkinter 允许我们通过自定义的方式,将按钮自定义成标签或图像按钮。
二、Button语法及其参数
Button Syntax
object = Button(master, options.....)
Button Options
A complete list of options for the Button Widget.
No. | Option | Description |
---|---|---|
1 | activebackground | The Background color when the cursor is over the button. |
2 | activeforeground | The Foreground color when the cursor is over the button. |
3 | bg</ |