[vtkusers] embedding a tcl console in your vtk app

Randy Heiland heiland at ncsa.uiuc.edu
Mon Sep 24 15:46:48 EDT 2001


On Sep 24,  8:24pm, John Biddiscombe wrote:
> Subject: [vtkusers] embedding a tcl console in your vtk app
> Does anyone know of an easy way to embed a tcl interpreter console inside a
> gui written in C++. I've done a fairly crude one and it is a bit of a pain
> having to capture stdout and stderr etc and make it all work nicely. Many
> people must have been down this path before using tcl, but being not much
> of a tcl whizz I'm not sure where is a good place to look for clues. Is
> there anything built into tcl/tk that can be attached to a gui easily? (or
> can anyone point to a demo anywhere)
>
> thanks
>
> JB
> [I asked the tcl newsgroup this and got no replies, Incidentally, can you
> do anything similar with python?]


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

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

--Randy



More information about the vtkusers mailing list