Re: PERL Tkx changing colors

[email protected] (Jeff Hobbs) Fri, 08 Jul 2011 09:27:48 -0700
Newsgroups perl.tcltk
Message-ID <[email protected]>
On 08/07/2011 7:27 AM, gary sachs wrote:
> Thank you, the code does shed some light. I does seem that the TTK
> themed/stylized widgets do not quite offer the level of
> customizations that the non-TTK allow. I understand that the TTK
> style widgets are supposed to be the same as the OS's respective
> widgets and thus the limitations.

Indeed, the classic Tk widgets are per-widget customized, while the 
themed Tk widgets are style-based.  You can of course choose to style 
each widget differently, but it's designed to cover all or few easily.

> Do you know can a non-TTK widget, say a button, after its colors have
> been customized then be altered to have the rounded corners and
> shadings as the XP button in my case?

At http://wiki.tcl.tk/14796 you will see how to customize the background 
on a Ttk button, with some extras.  There are several other examples at 
the Tcl wiki that just need minor translation over to Perl/Tkx.

Jeff