in reply to Default GUI toolkit for perl?

...i recommend using Gtk2....why? ..... the basic c libs now come standard on linux, so as to run firefox and gimp and such..... there is also very active and widespread development within gtk2.....

there is a tutorial at Perl Gtk2 tutorial and to get a Perl version easily installed on win32, that comes with all the Gtk2 stuff installed, try Camelbox: A build of Gtk2-Perl for Windows

...another benefit of perl-gtk2 is that it clearly parallels the c libs in names and stuff, so you can port your app to c later, and there are many gtk2-c tutorials available and very good mailling lists for both c and perl..... be warned however, before asking questions on the maillist, they expect you to at least have gone thru the tutorials, and show some code.

...the drawback to gtk2 ( actually an advantage in my books) compared to Wx, is that there is no easy to use GUI designer, .... no gui layout manager, forces you to make your own windows, do the packing, and signal setup yourself....this is important if you want to write more advanced stuff

....alot of people like Wx, which has a more c++ style, where as gtk2 is more like plain c, with a bunch of extra data types thrown in.... into a basic event loop and object system called Glib.....just read up on it...its all free


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^2: Default GUI toolkit for perl?
by Anonymous Monk on Nov 17, 2009 at 17:14 UTC
      yes it is, but it is somewhat incomplete and it is no where near VC++..... like right click menus to alter options ,signals, and callbacks to menus are missing in the gui designer..... and it just produces boilerplate code with scalar and subroutines automatically named to non-descript things like $ad55677 or sub 12341234123, IIRC ..... so when you want to do something fancy, which requires manually digging into the code, it becomes impossible.

      ....that is why it pays to read the perl-gtk2 tutorial and learn the simple procedures for setting up your basic windows.

      i was just trying to make the point that the allure of Wx, to the newbies out there, is that they can setup basic windows on the screen, with it's gui designer...... but it hampers you in the long run...... except for simple apps......its just my opinion that writing from scratch will give you more command over the app, and prevent many problems by more descriptive variable and subroutine names.


      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku