While I obviously can't speak for everyone, I can attempt to speak to why I, personally, write stuff with Tk:

  1. Documentation. This is a biggie. With two books out on Perl/Tk (the aforementioned Mastering Perl/Tk, as well as Learning Perl/Tk) it's fairly comprehensively discussed in dead tree form -- if that's how you like your documentation. It also has much more comprehensive digital documentation, as well; I mean, it has about a hundred pieces of POD, including one for every widget.
  2. Portability. Despite what you say above, I was unable to find reference to Gtk working under Win32, or qt. In either case, it looks to be a hassle, and the few places I did see reference to it, people sad "if it exists, it's probably buggy." I'd be inclined to agree with them. Tk installs well and easily under Activestate, as one can just use PPM. I saw no such option for Gtk or qt.
  3. User base. From what I've seen, there are quite a few more people already using Tk than use Gtk or qt. This means that it's easier to find people with clue when you get stuck. Unfortunatly, this is a self-enfocing problem.
  4. I don't care that much about the ugliness. For people who care about that extra bit of spit and polish, perhaps Tk is a cancer on their screen. That's probably the price of being cross-platform, though.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'


In reply to Why Tk? was Re: Re: Perl/Tk exemplars? by Chmrr
in thread Perl/Tk exemplars? by dws

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.