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

Hi Respected Monks, I am totally new to perl. I need help with GUI.I need to represent a 2D array as a grid of squares (each square representing each of my array values) in which the colors of each squares can be selected using the values of respective array values. I want to know which GUI can be used for this purpose as well as this square grid i am talking about should be interactive with mouse click such that i can read the location of the square over which the mouse is clicked. Hope u will help this newbie...:)

Replies are listed 'Best First'.
Re: Help a newbie
by marto (Cardinal) on Mar 13, 2013 at 08:07 UTC

    User Interfaces lists several GUI frameworks which could achieve this, Tk is fairly common and cross platform, though you could also achieve this with a perl back end and a HTML/JavaScript front end. Consider reading PerlMonks for the Absolute Beginner and don't ignore the links displayed when posting which advise on choosing an appropriate title and so on.

    If you have a specific question please read How do I post a question effectively? before posting again.

Re: Help a newbie
by jmlynesjr (Deacon) on Mar 14, 2013 at 02:30 UTC

    wxPerl supports a wxGrid control that looks like a spreadsheet.

    Update1: See http://github.com/jmlynesjr/wxPerl-wxBook-Examples. Look at example CppTrial-pg347.pl. It's an 8x10 grid example with text, numbers, and color changes.

    James

    There's never enough time to do it right, but always enough time to do it over...