in reply to Tkx: "invalid command error" OS X

tk::text is a themed widget new in Tcl/Tk 8.5, so I assume you are still using 8.4 on OS X. This happens when you are either using an older version of ActivePerl on the Mac, or if you use the default versions of Perl and Tcl supplied by Apple.

If you are stuck using 8.4 then you could change your code to call $tw = $mw->new_text(...); which uses the old name and should work with both 8.4 and 8.5.

Replies are listed 'Best First'.
Re^2: Tkx: "invalid command error" OS X
by vlsimpson (Beadle) on Nov 20, 2008 at 16:59 UTC

    Thanks, jand. That was it, 8.4 vs. 8.5

    Thanks also, almut, for the TRACE pointer.