Skip Menu |

This queue is for tickets about the Tkx CPAN distribution.

Report information
The Basics
Id: 35352
Status: rejected
Priority: 0/
Queue: Tkx

People
Owner: Nobody in particular
Requestors: MJCARMAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.04
Fixed in: (no value)



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.
From: GAAS [...] cpan.org
On Wed Apr 23 14:00:27 2008, MJCARMAN wrote: Show quoted text
> 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().
Shouldn't Tkx::eval($something) work well enough for that?
From: mjcarman [...] mchsi.com
On Wed Apr 23 15:29:30 2008, GAAS wrote: Show quoted text
> > Shouldn't Tkx::eval($something) work well enough for that?
Yes, it would, if I knew that it existed. *sigh* My tcl-fu is weak.