If Gtk2-Perl is too difficult to install, you could just install it once on your system and compile your Perl script into an EXE to distribute it to others... then the users don't need Gtk2-Perl, or even Perl itself, to be able to run your program.

If this is for Win32-only you could also consider Win32::GUI as the UI toolkit which would provide a more native look-and-feel to your app... or you can use Tk, which looks almost native on Win32 (there's only very small quirks about it that make it stand out from regular Win32 apps, such as the active button doesn't get a dotted-line border around it, and disabled text isn't sunken in but just solid grey, but for the most part it fits in on Windows). Perl/Tk is very easy to install on Windows, as is Win32::GUI.

For compiling your Perl app into an EXE, look into pp (PAR::Packer) for a free/open source solution, PerlApp from ActiveState for a commercial version (it's the best compiler I've ever used)... and then there's also perl2exe, also commercial, but I've had trouble getting it to work on some of my perl scripts.


In reply to Re: Embed perl or Gtk2-perl? by Kirsle
in thread Embed perl or Gtk2-perl? by xiaoyafeng

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.