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

High-Contrast-Theming and classic Tk widgets

54 views
Skip to first unread message

MartinLemburg@Siemens-PLM

unread,
Jul 16, 2015, 9:00:12 AM7/16/15
to
Hi,

I tried to apply high-contrst-theme colors to specific widgets like the labelframe or as bordercolor to a label or a frame.

Since there is no border color attribute setting the color of a frame to influence its border and setting the background of each contained widget is the only way to change the frames border color.

But how to change it for a labelframe or a label without changing the whole appearance?

Thanks in advance,

Martin

Rich

unread,
Jul 16, 2015, 11:56:59 AM7/16/15
to
MartinLemburg@Siemens-PLM <martin.lembur...@gmx.net> wrote:
> Hi,

> I tried to apply high-contrst-theme colors to specific widgets like the labelframe or as bordercolor to a label or a frame.

> Since there is no border color attribute setting the color of a frame
> to influence its border

There is an attribute that influences the border color of a frame:

$ rlwrap wish
% frame .f -width 100 -height 100 -highlightbackground black -highlightthickness 5
.f
% pack .f

And I have a frame with a 5 pixel black border.

> and setting the background of each contained widget is the only way
> to change the frames border color.

Nope, see above.

> But how to change it for a labelframe

A labelframe with a black border:

$ rlwrap wish
% labelframe .lf -width 100 -height 100 -highlightthickness 5 -highlightbackground black
.lf
% pack .lf

> or a label without changing the whole appearance?

Label with border:

$ rlwrap wish
% label .l -text "Label Text" -highlightthickness 5 -highlightbackground black
.l
% pack .l

> Thanks in advance,

> Martin
0 new messages