Dan Anderson wrote:

I'm learning Perl.  Currently i can create some nifty little apps that
scroll across the Linux console.  But they look like garbage compared
with a real app.  (i.e. Vi or Emacs or anything like that).  Is there a
way to use Perl to output aesthetically good looking apps (preferably
compatible across many platforms)?  I figured there might even be a
widget toolkit I could use to create X Window apps and Windows apps, but
what do you recommend?

For portable GUI apps, try wxWindows:


http://wxperl.sourceforge.net/
http://search.cpan.org/author/MBARBON/Wx-0.17/Wx.pm

For text mode apps, check out my rescent "Re: <STDIN>" post with two simple examples on using Term::ReadLine and Curses::UI.

http://www.mail-archive.com/beginners%40perl.org/msg46883.html

I'll repost the Curses example:

#!/usr/bin/perl -w

use strict;
use Curses::UI;

my $cui = new Curses::UI;
my @a = qw(foo bar baz abc x y z);

my $r = $cui->dialog(
     -title => "Widget",
     -message => "Choose widget:",
     -buttons => [map {{-label=>$_}} @a],
);

$cui->dialog("You have chosen $a[$r].");

__END__

See also:

http://search.cpan.org/modlist/User_Interfaces

--
ZSDC


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to