in reply to Tcl::Tk module

Why not just write the thing in Perl/Tk instead, and forget the Tcl? Then your script would look something like:
use Tk; $mw = MainWindow->new; $mw->title('Sample'); $e1 = $mw->Entry(-textvariable => \$var1)->pack(); $e2 = $mw->Entry(-textvariable => \$var2)->pack(); $e3 = $mw->Entry(-textvariable => \$var3)->pack(); $b = $mw->Button(-command => sub { $var3 = $var1 + $var2; })->pack(); MainLoop;
Spud Zeppelin * spud@spudzeppelin.com

Replies are listed 'Best First'.
Re: Re: Tcl::Tk module
by softworkz (Monk) on Aug 17, 2001 at 19:22 UTC
    Nice example spud, you get a star!