----- Original Message -----
From: "Bruce Winter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 2:12 PM
Subject: RE: Tk::Widget autoloading not working


> > Here's the script minus all the additional 'pp' requirements:
> > -------------------------------------------------
> > #!perl -w
> >   use Tk;
> >   use Tk::LabEntry;
> >   use Tk::Widget;
> >   use Tk::Frame;
> >   $mw = MainWindow->new;
> >   $scrollbar = $mw->Scrolled('Listbox');
> >   $scrollbar->insert(0, qw(hi bye));
> >   $scrollbar->pack();
> >   MainLoop;
> > -----------------------------------------------------------
>
> Hmmm, I don't know what I'm doing differently, but the above testcase and
> other more complicated testcases with lots of tk widgets all work fine for
> me on both windows and linux.
>
> I simple put the above in a file called test_tk.pl, ran pp test_tk.pl.
The
> resulting a.exe (a.out on linux) ran fine on both the box it was compiled
on
> and on boxes without perl installed (or installed differently).
>
> Note, this only started working for me with the fixes that were put into
> 0.66.
>
> I'm running perl 5.8 on both linux and windows.  Maybe you are trying it
on
> 5.6?
>

I've tried on both 5.8 and 5.6 (with PAR-0.66) - same result.
Did you actually *build* the executable on the *windows* box ? Or is it
simply that the executable built on the linux box runs on the windows box ?

(I've just re-read your post - I gather the answer to the first question is
"yes" :-)

Other than that, it could be the version of Tk we are running. Mine is
800.024 on 5.8, and 800.023 on 5.6.
What's yours ?

If it's not that ..... I dunno where we go....

I'd be interested to learn what '$name' in sub AUTOLOAD contains for you,
both when the perl script runs and the executable runs. If it's a hassle to
edit TK/Widget.pm and re-build the executable, then please don't bother :-)

Cheers,
Rob

Reply via email to