O'Reilly logo

Tcl/Tk 8.5 Programming Cookbook by Bert Wheeler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

-background or bg

Specifies the background color to be used when drawing the element.

-borderwidth or -bd

Specifies a non-negative value indicating the width of the 3D border to draw around the outside of the window.

-cursor

Specifies the mouse cursor to be used for the window.

-disabledforeground

Specifies the color ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required