Re: bug when configuring style of ttk::labelframe
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Feb 2008 14:57:26 -0600
Bryan Oakley wrote:
If I configure the background color of a ttk::labelframe widget, the label doesn't inherit the color. Is this a bug or am I doing it wrong?
ttk::style configure my.TLabelframe -background blue -foreground white
ttk::labelframe .lf -style my.TLabelframe -text "Hello, world"
.lf configure -width 200 -height 200
pack .lf -side top -fill both -expand true
I know I can work around this by supplying the -labelwidget option but I figured I'd check here in case I'm missing something obvious.
I think I just answered my own question. Adding this gives me the desired result:
ttk::style configure my.TLabelframe.Label \
-background blue -foreground white
--
Bryan "Groovin' on Themes" Oakley
http://www.tclscripting.com
.
- References:
- bug when configuring style of ttk::labelframe
- From: Bryan Oakley
- bug when configuring style of ttk::labelframe
- Prev by Date: Re: pasing parametersfor a function when a button is used
- Next by Date: Re: Tk 8.5.1: unknown color name {#d9d9d9}
- Previous by thread: bug when configuring style of ttk::labelframe
- Index(es):
Relevant Pages
|