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



O/H bwilson79@xxxxxxxxx έγραψε:
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
.


Quantcast