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?
file Gtk2Helper.pm
package Gtk2Helper;
use Gtk2;
sub new_Window {
return
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 least
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.
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 module
Steffen said:
Maybe an additional
use perl5:Wx::SimpleApp;
? I'm just guessing...
Steffen
--
Steffen Schwigon schwi...
http://groups.google.com/groups/unlock?msg=5db1a47bed78a20d_done=/group/perl.perl6.users/browse_frm/thread/4c85d7fedf76dd11/6ec62de446f6ea38%3F@webit.de
Dresden Perl
Upgraded to pugs 6.13 after seeing comprehensive support for
interoperability with Perl 5 modules.
I want to test gui modules and I am trying the Gtk2 and Wx modules.
The following program works under perl5:
use strict;
use Wx;
my $app = Wx::SimpleApp-new;
my $frame=Wx::Frame-new(undef, -1,
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 wxtest.p6 line 2,