Re: Colors and other questions

[email protected] (Jeff Hobbs)
Newsgroups perl.tcltk
Message-ID <[email protected]>
On 09/03/2010 9:18 AM, Swingle David-QWHM86 wrote:
>>> If I try something like:
>>>     $g_widgets{EntryTheme} = Tkx::ttk__style_configure("Red.TEntry",
>>> -background =>  "red");
>>> I get:
>>>     invalid command name "ttk::style" at ...
>>> I took the ttk__style_configure() from the tutorial at
>>> http://www.tkdocs.com/tutorial
>>
>> That works for me.  Are you still using the older Tkx?  Do
>> you have the 'tile' package in use in that case?  I would
>> recommend using the latest ActivePerl though to keep it most
>> consistent with docs and examples that will mostly be Tk 8.5 based.
>>
> I'm using Perl 5.8.8, with Tk 8.4.15.  Is there support for specifying
> and using a different style in 8.4.15?

Try just using the 'style' command.  I believe that version may preceed 
'style' being placed in the ttk namespace.  The docs for tile's style are at
	http://tktable.sourceforge.net/tile/doc/style.html
and if you look at the 2004 PDF referenced, I see that style was not 
namespaced at the time.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.