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

How do I find out the default color used in my TK GUI?

1 view
Skip to first unread message

bwil...@gmail.com

unread,
Jul 30, 2008, 8:19:41 PM7/30/08
to
It looks close to beige but not quite. I have a GUI where I want to
change the color of some things at different times but also want to
restore their original colors.

Georgios Petasis

unread,
Jul 31, 2008, 7:12:17 AM7/31/08
to bwil...@gmail.com
O/H bwil...@gmail.com έγραψε:

> It looks close to beige but not quite. I have a GUI where I want to
> change the color of some things at different times but also want to
> restore their original colors.

pack [button .b -text hello]
.b cget -background
SystemButtonFace
.b configure -background
-background background Background SystemButtonFace SystemButtonFace
.b configure -background yellow
.b configure -background
-background background Background SystemButtonFace yellow

You can use <widget> configure -option to get the list of default values.

George

0 new messages