develooper Front page | perl.tcltk | Postings from July 2011

Re: PERL Tkx changing colors

Thread Previous | Thread Next
From:
Jeff Hobbs
Date:
July 8, 2011 09:28
Subject:
Re: PERL Tkx changing colors
Message ID:
4E173004.5000601@activestate.com
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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About