shreedarasp has asked for the wisdom of the Perl Monks concerning the following question:

Hi i did few searches on Perl GUI and i did not get the satisfactory results so far. so i am posting this question in this forum. many times i need to create GUIs to get information from the user. i found TK is quite detailed and need to write lot of lenghty code to get simple GUIs. is there a better GUI tool for perl? what are those? question in specific is, i am looking for some kind of tool where i can DESIGN my GUI and then that software should give me the "source code" so that i can use that code in my perl script. this way i do not have to create lengthy codes for GUIs. is there a tool like this? any ideas would be appreciated.

Replies are listed 'Best First'.
Re: Perl GUI
by marto (Cardinal) on Jul 12, 2007 at 14:48 UTC
    shreedarasp,

    You may want to look at ZooZ, "A Perl/Tk GUI builder in pure Perl/Tk.". I have used it in the past to quickly develop some Tk apps, perhaps it is what you are looking for. For alternatives to Tk see Building GUIs with a GUI along with some of the responses to IDE for GUI?.

    Hope this helps

    Martin
Re: Perl GUI
by zentara (Cardinal) on Jul 12, 2007 at 16:47 UTC
    Almost every beginner has wanted the same such "miracle code writer".... but believe me, you are better off writing the code from scratch. The "boilerplate code" produced by the auto-code-writers are convoluted, messy, and actually make it harder to write a good gui front end. Sure you can get away with it occaisionally, but for the most part you will be stuck with long unreadable variable names, odd subroutines, and similar boiler-plate code, and you be lost to get answers when you are stuck.

    It is not hard to write a simple gui for getting input.....

    You can search groups.google.com for hundreds of examples for getting name/password information, or whatever you need to get..... even paragraph's of text.


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: Perl GUI
by hangon (Deacon) on Jul 12, 2007 at 22:11 UTC

    I recently started learning Perl/Tk, and find after you get used to the concept its reasonably straightforward to work with. This tutorial gives a good overview of the basics. Many more details are in the pods. A readthrough will give you a good idea of what you can do, but due to the number of pods in the distribution, it may be difficult to use them a reference. I found a nice Perl Tk Reference (pdf) online that when you print, fold, and staple makes a well organized booklet to keep in front of you while you work.

Re: Perl GUI
by vkon (Curate) on Jul 12, 2007 at 16:48 UTC
    Tcl::Tk is the best.

    Similar to perl/Tk, but you get all power of Tcl/Tk GUI, including Visual IDEs (e.g. vtcl), huge widget library, etc.