Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with button -relief ridge

23 views
Skip to first unread message

Donald Rozenberg

unread,
Feb 2, 2021, 8:34:19 PM2/2/21
to
A button widget with -relief ridge appears identical to one with -relief sunken. This is not the case with labelframe widget. Consider the code below:

button .b1 -text sunken -relief sunken
button .b2 -text ridge -relief ridge
labelframe .lf1 -text sunken -relief sunken -width 100 -height 50
labelframe .lf2 -text ridge -relief ridge -width 100 -height 50
pack .b1
pack .b2
pack .lf1
pack .lf2

I see this with both wish 8.6.9 and 8.7a3.
I feel that I must be missing something rather than this being a bug.

I will appreciate any comments.

js

unread,
Feb 2, 2021, 11:41:22 PM2/2/21
to
They do look different on Windows 10, Tcl/Tk 8.6.10.

nemethi

unread,
Feb 3, 2021, 3:42:54 AM2/3/21
to
Am 03.02.21 um 05:41 schrieb js:
The reliefs ridge and sunken will only appear different if the value of
the -borderwidth option is at least 2. In Tk versions 8.5 and later the
default button borderwidth is 1 on Unix (X11) and 2 on Windows and Mac OS X.

--
Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

0 new messages