Make sure you use Gtk2-Perl, not Gtk-Perl. The latter is deprecated — it is not maintained any longer (the last release was ages ago), and it binds the Gtk+ 1.x libraries, which in turn are also unmaintained. In addition, Gtk-Perl's bindings coverage of Gtk+ 1.x was never even nearly as complete as Gtk2-Perl's coverage of Gtk+ 2.x.

The Tk API is seriously botched in my opinion. Trying to write Tk applications is always a messy affair, full of globals and difficult to modularize and abstract. It's spaghetti code at its finest.

In contrast, Gtk2 is a joy to work with, and allows applications to be written in much cleaner and more maintainable fashion. It is downright fun — once you've grokked various concepts that apply in GUI programming in general, you'll probably find it almost completely intuitive. I love it to pieces.

Makeshifts last the longest.


In reply to Re: perl Tk vs Gtk perl by Aristotle
in thread perl Tk vs Gtk perl by sandeep.ses

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.