Home > Archive > PERL Modules > July 2006 > Re: Curses::UI: No definition found for '< Yes >'
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Curses::UI: No definition found for '< Yes >'
|
|
| Mumia W. 2006-07-11, 3:57 am |
| Chasecr Systemhouse wrote:
> On 7/10/06, Mumia W. <mumia.w.18.spam+nospam@earthlink.net> wrote:
>
> The Curses::UI refers you to a more appropriate example. The example's syntax:
>
> use FindBin;
> use lib "$FindBin::RealBin/../lib";
>
> use strict;
> use Curses::UI;
> [...]
>
> In other words, the < Yes > was supposed to be the label of a button;
> not a button itself...
>
> HTH/Sx
Thanks. I wanted something simple to start with, and after reading
Curses::UI::Buttonbox's doc page, I created a simple example that works:
#!/usr/bin/perl
use strict;
use warnings;
use Curses::UI;
my $cui = new Curses::UI (-color_support => 1);
my $my = $cui->dialog(
-message => 'Hello World.',
-buttons => ['yes', 'no'],
-values => [1, 0],
-title => 'First Dialog',
);
__END__
'Yes' and 'no' are pre-defined button names. Perhaps the example code in
Curses::UI should be changed.
| |
| Mumia W. 2006-07-11, 3:57 am |
| Mumia W. wrote:
> [...] I created a simple example that works:
>
> #!/usr/bin/perl
>
> use strict;
> use warnings;
> use Curses::UI;
>
> my $cui = new Curses::UI (-color_support => 1);
>
> my $my = $cui->dialog(
> -message => 'Hello World.',
> -buttons => ['yes', 'no'],
> -values => [1, 0],
> -title => 'First Dialog',
> );
>
> __END__
>
> 'Yes' and 'no' are pre-defined button names. Perhaps the example code in
> Curses::UI should be changed.
>
>
I mean, perhaps the documentation in Curses::UI should
be changed.
|
|
|
|
|