[Chicago-talk] perl GUI question
Richard Reina
richard at rushlogistics.com
Mon Mar 22 16:58:14 PDT 2010
Shlomi,
Thanks for the input. Unfortunately from what I can tell both wxperl and perl/Gtk are very similar to perl/tk in that they are very mouse prone. Don't get me wrong I like Tk and use it, for certain things it can't be beat. However, for this particular instance I am dealing with a menu that's built from the results of a database query and I am looking for something with the feel of a scroll down menu using arrow keys that won't make the user grab for their mouse.
Something like this.
#!/usr/bin/perl
# Sample Cmenu script
use Cmenu;
menu_initialise("Cmenu Sample Script");
menu_init("Menu Title","Menu Help Text");
menu_item("Option 1","gimme1");
menu_item("Option 2","gimme2");
menu_item("Option 3","gimme3");
chop($sel = menu_display("Menu Prompt"));
menu_terminate("bye bye");
I just need a way to make the choices colored in order to fit into my schema
---- Chicago.pm chatter <chicago-talk at pm.org> wrote:
>
> On Monday 22 Mar 2010 03:44:53 Richard Reina wrote:
> > I have been using perlmenu to create menus for a small database API.
> > However, perl menu does not allow color. Does anyone know if Cmenu or any
> > other perl GUI (aside from perl-tk) that allows for color in menu items?
> >
>
> I believe both wxPerl and Perl/Gtk+ allow you to specify a colour in menu
> items. Haven't tried it but it should be easy to try.
>
> Regards,
>
> Shlomi Fish
>
> > Like the following:
> >
> > Choice 1 (in red)
> > Choice 2 ( in blue)
> > Choice 3 (in yellow)
> >
> > Thanks
> > _______________________________________________
> > Chicago-talk mailing list
> > Chicago-talk at pm.org
> > http://mail.pm.org/mailman/listinfo/chicago-talk
>
> --
> -----------------------------------------------------------------
> Shlomi Fish http://www.shlomifish.org/
> Freecell Solver - http://fc-solve.berlios.de/
>
> Deletionists delete Wikipedia articles that they consider lame.
> Chuck Norris deletes deletionists whom he considers lame.
>
> Please reply to list if it's a mailing list post - http://shlom.in/reply .
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
More information about the Chicago-talk
mailing list