Re: How do I find out the default color used in my TK GUI?
- From: Georgios Petasis <petasis@xxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 14:12:17 +0300
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
.
- References:
- How do I find out the default color used in my TK GUI?
- From: bwilson79@xxxxxxxxx
- How do I find out the default color used in my TK GUI?
- Prev by Date: Re: upgrade problem tcl/tk-8.4 -> 8.5 -- please help
- Next by Date: Re: upgrade problem tcl/tk-8.4 -> 8.5 [SOLVED]
- Previous by thread: How do I find out the default color used in my TK GUI?
- Next by thread: why expect make the Chinese code garbled
- Index(es):