Subject: | Make TCL interpreter visible |
The interpreter (from Tcl.pm) should be made visible to users of Tkx.pm.
Alternately, it would be sufficient (for me) if Tkx provided a
Tkx::i::Eval() function which called $interp->Eval().
Here's my use case: I'm trying to make a text widget read-only (since Tk
lacks the equivalent of Perl/Tk's ROText). This turns out to be not very
difficult to do with a little bit of Tcl code but Tkx::i::call() isn't
sufficient to invoke it. (I need to install a new function.) Creating a
new interpreter doesn't work either because it's not a singleton.
For the moment I've hacked my copy of Tkx.pm to change "my $interp" to
"our $interp" to test that my Tcl code works, but this isn't a long-term
solution because I can't distribute my code.