Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

acme (189)

  (email not shown publicly)

Leon Brocard (aka acme) is an orange-loving Perl eurohacker with many varied contributions to the Perl community, including the GraphViz module on the CPAN. YAPC::Europe was all his fault. He is still looking for a Perl Monger group he can start which begins with the letter 'D'.

Journal of acme (189)

Tuesday March 23, 2004
12:53 PM


[ #18026 ]
So everyone has been worrying about high level languages on the desktop.

Well I decided to have a play with the Gtk2 Perl bindings last week or so. It took me a while to get the hang of how things went on, but overall I really like how easy it is to put things together.

I decided to write a sample app using GLADE. I created a window, added a text field, a button, and a list view, and saved it as XML. Then I wrote a program which uses Parse::CPAN::Authors, reads in the GLADE file using Gtk2::GladeXML, and puts in the right hooks. See the source. See a screenshot. Hey presto, a small GUI interface to search the CPAN author list. I really liked how easy it was to put together. GUI in Perl isn't dead. Maybe its time has come...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I did some GTK programming by hand in both C and Perl a year or two ago and I found it very productive.

    I might try GTK2 again, the only concern I have with perl/gtk is the long list of dependancies involved - if I could build an easy to deploy bundle using GTK2 and Perl I would choose that over QT/C++ which I am currently looking at for writing GUI applications.

    ..of course I will probably try and do both as I want to learn C++ properly (i.e. write real code to do real jobs, its the only way to learn) an


    @JAPH = qw(Hacker Perl Another Just);
    print reverse @JAPH;
  • Very nice. Why didn't you use Gtk::SimpleList? I'm not familiar with Gtk but the interface looks simpler

    acme said...
    I really liked how easy it was to put together. GUI in Perl isn't dead. Maybe its time has come...

    It's very much alive with Wx []. I've knocked up a quick port of your app to wxPerl. Screenshots on Windows [] and Linux [] are available as well as the source []

    • That looks pretty good. I'd given up on Wx as I've found it hard to install and there wasn't Glade for it. Looks like wxGlade helps a lot in this respect ;-)