vlsimpson has asked for the wisdom of the Perl Monks concerning the following question:
I am in the process of moving a Perl/Tk text editor to Perl/Tkx.
The following code works fine on Windows XP ActivePerl 5.8/5.10 but my OS X testers are getting this error:
invalid command name "tk::text" at tkx-test-1.pl line 24. (There's a FIXME: on the offending line.)
I've searched on this but no results that seemed applicable.
Thanks for any and all responses.
use warnings; use strict; use Tkx; my $VERSION = "1.0.0"; my ($mw, $tw); $mw = Tkx::widget->new("."); $tw = $mw->new_tk__text( # FIXME: Barfs on OS X -width => 40, -height => 10 ); $tw->g_grid; $tw->g_focus; $tw->insert("1.0", "If you can read this it worked."); Tkx::MainLoop(); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tkx: "invalid command error" OS X
by jand (Friar) on Nov 20, 2008 at 02:13 UTC | |
by vlsimpson (Beadle) on Nov 20, 2008 at 16:59 UTC | |
|
Re: Tkx: "invalid command error" OS X
by almut (Canon) on Nov 19, 2008 at 21:58 UTC |