November 1999
Intermediate to advanced
832 pages
19h 28m
English
Example 37-2 illustrates the different reliefs:
frame .f -borderwidth 10
pack .f
foreach relief {raised sunken flat ridge groove solid} {
label .f.$relief -text $relief -relief $relief \
-bd 2 -padx 3
pack .f.$relief -side left -padx 4
}
|
The three-dimensional appearance of widgets is determined by two attributes: borderWidth and relief. The borderWidth adds extra space around the edge of a widget's display, and this area can be displayed in a number of ways according to the relief attribute. The solid relief was added in Tk 8.0 to support the Macintosh look for entry widget, and it works well ...
Read now
Unlock full access