I suppose it all depends on the level of control and portability that you are looking to achieve. For example, you can create your own custom buttons in a similar manner to custom HTML buttons (using Labels, Images, and custom bindings).

Perl/Tk does supports themes -- in a way, but not a very useful way if you're looking for portability between X and Win32, and the support that is there is slightly clunky IMO, and probably not what you are looking for.

Probably the best support available for Tk themes currently exists through the most recent builds of Tcl/Tk and the Tcl::Tk bridge available in CPAN. It offers certain trade-offs for development. On the plus side, you have access to all the latest and greatest that the Tcl/Tk community has to offer - new features, bug fixes, other Tcl/Tk custom widgets, etc. The basic API is also very similiar to Perl/Tk's. On the minus side you have to maintain a separate Tcl/Tk distro, which adds to deployment concerns, also Tcl/Tk and Perl/Tk are not completely compatible. Subclassing is distinctly different from Perl/Tk, so that means that most custom Perl/Tk widgets are not able to be used. Tcl/Tk knowledge is not absolutely required for Tcl::Tk, but can be helpful. There are other tradeoffs as well, but this post isn't intended to be exhaustive comparison between the two.

Rob

In reply to Re: Perl Tk themes by rcseege
in thread Perl Tk themes by critter

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.