Creating a listbox widget
The Tk listbox widget provides a powerful tool for collecting and displaying string data. Each entry is displayed on an individual line. Elements are added or deleted using the commands inherent to the widget. For screen size consideration, the listbox supports both horizontal and vertical scrolling.
The keywords are described in the Tk main pages as follows:
Standard Keyword |
Interpretation |
---|---|
|
Specifies the background color to be used when drawing the element. |
|
Specifies a non-negative value indicating the width of the 3D border to draw around the outside of the window. |
|
Specifies the mouse cursor to be used for the window. |
|
Specifies the color ... |
Get Tcl/Tk 8.5 Programming Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.