Re: Installing Curses Module?



Dans l'article <47c19e8e$0$6132$4c368faf@xxxxxxxxxxxxxx>,
jlowder@xxxxxxxxxxxxxxxxxxxxxx a dit...

So far so good. The context checker seems to now like both the main and
widgets modules. I then execute my script and receive the following:

Can't locate object method "ComboBox" via package "Curses::Widgets" at
C:\OpenPerlIDE\PerlScripts\Repository.pl line 37.

$cb = $frame1->Curses::Widgets::ComboBox->new({

The line of failure is above ^. This is the same error as before.

Bad constructor call. Try:

$cb = Curses::Widgets::ComboBox->new({


I then downloaded the demo script you provided a link to. On two
different machines it fails. Depending on the editor I run from, I
either receive a crash in the Perl Command Line Interpreter, or when
using Komodo Edit, I receive a return error code of -1073741819.
Running directly from the command line just returns immediately.

I am running this on Windows.


Windows 95? 98? NT? 2000? XP? Vista?
What version of Perl? (type perl -v in a console)

I tested the module with Perl 5.6, 5.8 and 5.10 on XP and Vista.
It runs fine. Here is a screenshot:

http://www.bribes.org/perl/CursesWidgetsDemo.png

(The combobox is on the right, in red)

HTH

--
J-L.M.
http://www.bribes.org/perl

.



Relevant Pages

  • Re: GUI and Rapid Application Development?
    ... Most simple applications that I dealt with did not need the use of API ... I imagine Perl is faster, ... my Perl scripts are more compact ... Chirag> in Windows that could run on Windows 98 through 2003. ...
    (comp.os.linux.misc)
  • Re: ping Purl Gurl? Beginner Level Perl
    ... Purl Gurl wrote: ... If you are to learn Perl, ... Windows machines is good motivation for using Win. ...
    (alt.usage.english)
  • Re: My Regexp XML Parser -> Structured Perl Data, Cut & Paste Version, No Modules (Vol I)
    ... On Windows NT and later, subprocesses are now started via ``cmd /x/d/c'' ... Perl for ISAPI would sometimes close a filehandle twice. ...
    (comp.lang.perl.misc)
  • Re: Unix commands
    ... ==> writing the program in Perl, ... ==> program that had to be ported to Windows. ... After installing a Unix toolkit the script ... And every other common Unix tool. ...
    (comp.lang.perl.misc)
  • Re: Unix commands
    ... I don't recall ever writing a program that needed to trawl through ... All the Perl programs ... I'm not going to worry whether my tool is going to be run on Windows. ... // Actually many times I've ported my programs and tools to Unix too! ...
    (comp.lang.perl.misc)