Ask a Question related to PERL Modules, Design and Development.
-
Mumia W. #1
Re: Curses::UI: No definition found for '< Yes >'
Chasecreek Systemhouse wrote:
Thanks. I wanted something simple to start with, and after reading> On 7/10/06, Mumia W. <mumia.w.18.spam+nospam@earthlink.net> wrote:>>> I'm trying to learn to use Curses::UI, and I read the top of "perldoc
>> Curses::UI" and found some example code. Unfortunately, it doesn't work.
>> This is my program:
>>
>> #!/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__
>>
>> When I run this program, I get this error message:
>>>>>>> > Fatal program error:
>>> > ------------------------------------------
>>> > process_buttondefs(): Invalid button type.
>>> > No definition found for '< Yes >'
>>> > ------------------------------------------
>>> > Press any key to exit...
> 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
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. Guest
-
CDK vs Curses::UI
Hi all, We're implementing a UI in curses. Anyone have any opinions on the pros and cons of these two toolkits? Antony -
Curses does not compile
I am trying to compile the module Curses perl -MCPAN -e shell install Curses The compilation stops with the following message: .... In file... -
Compiling Curses in OS X for Perl
A note to anyone wanting to get Curses to compile under OS X 10.2.6. I had to make some changes to the standard c-config.h hints file, the old... -
ruby curses documentation ?
hello, I would like to start to learn using curses with ruby. I don't know nothing about curses. Is there existing any documentation about the... -
Curses compile problems
newbie needs help with Curses. I used source code to compile my own Perl 5.8 using gcc compiler. I need to get Curses working but get the... -
Mumia W. #2
Re: Curses::UI: No definition found for '< Yes >'
Mumia W. wrote:
I mean, perhaps the documentation in Curses::UI should> [...] 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.
>
>
be changed.
Mumia W. Guest
-
Dominique Dumont #3
Re: Curses::UI: No definition found for '< Yes >'
"Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net> writes:
Agreed. The best way for this to happen is to log a request> I mean, perhaps the documentation in Curses::UI should
> be changed.
on rt.cpan.org.
[url]https://rt.cpan.org/Dist/Display.html?Queue=Curses-UI[/url]
Cheers
--
Dominique Dumont
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner
Dominique Dumont Guest



Reply With Quote

