Listbox

Option name

.Xdefault’s name

Class name

Default Value

Current value

-background
background
Background
#d9d9d9
#d9d9d9
-bd
borderWidth
-bg
background
-borderwidth
borderWidth
BorderWidth
2
2
-cursor
cursor
Cursor
undef
-exportselection
exportSelection
ExportSelection
1
1
-fg
foreground
-font
font
Font
Helvetica -12 bold
Tk::Font=SCALAR(0x83649a0)
-foreground
foreground
Foreground
Black
Black
-height
height
Height
10
10
-highlightbackground
highlightBackground
HighlightBackground
#d9d9d9
#d9d9d9
-highlightcolor
highlightColor
HighlightColor
Black
Black
-highlightthickness
highlightThickness
HighlightThickness
1
1
-offset
offset
Offset
undef
ARRAY(0x86a5ff8)
-relief
relief
Relief
sunken
sunken
-selectbackground
selectBackground
Foreground
#c3c3c3
#c3c3c3
-selectborderwidth
selectBorderWidth
BorderWidth
1
1
-selectforeground
selectForeground
Background
Black
Black
-selectmode
selectMode
SelectMode
browse
browse
-setgrid
setGrid
SetGrid
0
0
-takefocus
takeFocus
TakeFocus
undef
undef
-tile
tile
Tile
undef
-width
width
Width
20
20
-xscrollcommand
xScrollCommand
ScrollCommand
undef
-yscrollcommand
yScrollCommand
ScrollCommand
undef

Get Mastering Perl/Tk 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.