[vtkusers] embedding a tcl console in your vtk app

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Mon Sep 24 16:46:49 EDT 2001


>Regarding Python, rf.
>http://www.python.org/doc/ext/embedding.html

I'll check it out..


>For Tcl, it used to be something like:
>     interp = Tcl_CreateInterp();
>     Tcl_Eval(interp, tclCmdString)

Aha. This bit is easy. What I want is nice text editor, with evaluate, cut 
paste undo buttons, an Eval button and all of it to capture the results and 
display them in the window. I have done this, but its just not very good. I 
know it can be done nicely, because there's a tkCon script out there which 
is written in tcl only and does pretty much what I want, but how do I embed 
one inside a window etc...

JB




More information about the vtkusers mailing list