Re: Colors and other questions
[email protected] (Jeff Hobbs)
| Newsgroups | perl.tcltk |
|---|---|
| Message-ID | <[email protected]> |
On 10/03/2010 5:28 AM, Swingle David-QWHM86 wrote:
>> The command in your version would be Tkx::style(...), but
>> note that will need to be corrected when you upgrade Perl to
>> Tkx::ttk__style(...).
>>
>> Jeff
>>
> What goes in the parens? I tried:
> Tkx::style("TEntry", -font => "courier 10");
> But I get an error. The following does not generate an error, and it
> works for the button, but not for the entry:
> Tkx::style_configure("TButton", -font => "courier 10");
> Tkx::style_configure("TEntry", -font => "courier 10");
The latter command style is correct, but for -font, that is a style
element for buttons but remains a regular option for ttk::entry, so just
create the entry with -font.
Jeff