目录
一、ListBox简介
ListBox是Python Tkinter的一个控件 ,用于显示供用户选择的选项列表。 与 ComboBox 不同,列表框一次显示其所有选项。 此外,所有选项均为文本格式。
二、ListBox语法及其参数
List Box Syntax
listbox = Listbox(root, option........)
Options
No. | Option | Description |
---|---|---|
1 | bg | Background color for the area around the widget. |
2 | bd | Size of the border around the widget. Default value is 2 pixels. |
3 | cursor | When the mouse is hovering over this widget, it can be changed to a special cursor type like an arrow or dot. |
4 | font | The type of font to b |