Re: Embedded perl5 modules

2006-10-28 Thread Richard Hainsworth
Steffen: Sorry, Didnt see all correspondence immediately, and hence responded twice. But here is an effort using Gtk2. It works. Can anyone explain why the lines with .can, whilst the other syntaxes dont work? package Gtk2Helper; use Gtk2; sub new_Window { return Gtk2::Window->new(@_); };

Re: Embedded perl5 modules

2006-10-24 Thread Steffen Schwigon
Richard Hainsworth <[EMAIL PROTECTED]> writes: > Tried > use perl5:Wx::SimpleApp; > but the compiler complained it could not find SimpleApp.pm Did you see my other suggestion with an intermediate "WxHelper" (http://www.nntp.perl.org/group/perl.perl6.users/546)? It also doesn't really work but at

Re: Embedded perl5 modules

2006-10-24 Thread Richard Hainsworth
Tried use perl5:Wx::SimpleApp; but the compiler complained it could not find SimpleApp.pm GUI packages, which are wrappers around C classes, seem to use all the techniques of perl5. I dont understand them to find out what is going on, or to isolate what the error so as to put it into a test.

Re: Embedded perl5 modules

2006-10-23 Thread Steffen Schwigon
Richard Hainsworth <[EMAIL PROTECTED]> writes: >>Steffen said: >>Maybe an additional >> use perl5:Wx::SimpleApp; > Tried it. Doesnt work. In the meantime I tried my guess and also had to learn that. See also my experiments in my other answer. > *However, surely a perl6 program using a perl5 mod

Re: Embedded perl5 modules

2006-10-22 Thread Richard Hainsworth
>Steffen said: >Maybe an additional > use perl5:Wx::SimpleApp; > ? I'm just guessing... > Steffen >-- >Steffen Schwigon @webit.de> >Dresden Perl M

Re: Embedded perl5 modules

2006-10-20 Thread Steffen Schwigon
Richard Hainsworth <[EMAIL PROTECTED]> writes: > use perl5:Wx; > my $app = Wx::SimpleApp.new; > my $frame=Wx::Frame.new(undef, -1, 'Hello world!'); > $frame.Show; > $app.MainLoop; > > The following is the result: > $pugs wxtest.p6 > *** No compatible subroutine found: "&Wx::SimpleApp" >at wxtes