Re: Tkx and configure

[email protected] (Jeff Hobbs) Wed, 30 Mar 2011 09:44:50 -0700
Newsgroups perl.tcltk
Message-ID <[email protected]>
On 30/03/2011 4:19 AM, vwf wrote:
> I want to change the appearance of a Tkx widget, but it behaves
> different than expected:
>
> my $frame = $mw->new_ttk__labelframe(
>          -text        =>  "test",
>          -labelanchor =>  'nw',
>      );
> $frame->configure(-text =>  "TEST"); #works
> $frame->configure(-foreground =>  "red"); #does NOT work, -foreground not recognised
>
> How do I change colors in Tkx?

ttk widgets (Themed Tk) work off the principle of styles and states, 
ignoring many individual widget configuration options.  For styling the 
labelframe, see:

http://wiki.tcl.tk/20054

Jeff