G'day spencoid,

[Disclaimer: I've done a fair amount of work with Tkx; however, I've not touched it in a year or so and don't have any of my code or notes to hand. The following is all from memory and may even be out-of-date: please check details for yourself.]

The first 't' in 'ttk' stands for themed. The default theme is basically whatever your platform provides (either as standard or your own configuration). You can create your own themes for use with Tkx and the 'ttk' version of widgets.

The Tkx documentation (amongst other things) has links to two tutorials which could be of interest to you.

Tkx::Tutorial
If you haven't already read this, you probably should. In particular, look at the Subclassing Tkx::widget section. I recommend you do this. It can be a fair bit of work up front but it's worth it in the end: get rid of that multitude of "Tkx::" namespace prefixes; no longer worry about whether to use "_", "__" or "___" (and don't wear out your underscore key having to type all of them); stop having to decide if a "g_*" or "m_*" method is appropriate; and, of course, write methods for big_red_button() or whatever it is you want. I really do recommend this!
TkDocs - Tk Tutorial
By default, this shows code examples in Perl, Tcl, Ruby and Python: you can filter that to just show Perl. See the Note on Coding Style — I wouldn't recommend cutting and pasting their code verbatim (I seem to recall that, after Subclassing Tkx::widget, and using oher features described in Tkx::Tutorial, I reduced their code by 50% or more). There's information throughout on styling your widgets; however, for the 'ttk' widgets, your main reference would be the Styles and Themes section.

— Ken


In reply to Re^2: adding style [Tkx and ttk widgets] by kcott
in thread adding style by spencoid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.