What: tclpython Where: http://jfontain.free.fr/tclpython.htm Description: Tcl extenson which allows you to create python interpreters from within a Tcl application and evaluate python code. Currently at version 2.1.0 . Updated: 02/2001 Contact: mailto:jfontain@free.fr (Jean-Luc Fontaine ) ---- This package allows the execution of Python code from a Tcl interpreter, as in: package require tclpython 3 set interpreter [python::interp new] $interpreter exec {print("Hello World")} puts [$interpreter eval 3/2.0] python::interp delete $interpreter which outputs: Hello World 1.5 It works by creating one or more embedded Python interpreters and sending them strings to evaluate or execute. Modules can be loaded in the Python interpreter as if it were the real Python program. [VK]: currently that package does not work on Windows, requires following approach: --- tclpython.c.orig Fri Jul 9 02:42:11 2004 +++ tclpython.c Mon Feb 7 23:19:29 2005 @@ -18,12 +18,19 @@ $ cc -fpic -I/usr/local/include/python -I/usr/local/include/tcltk/tcl8.3 -c tclpython.c $ ld -o tclpython.so -Bshareable -L/usr/X11R6/lib -L/usr/local/lib -L/usr/local/share/python/config tclpython.o -lpython -lutil -lreadline -ltermcap -lcrypt -lgmp -lgdbm -lpq -lz -ltcl83 -ltk83 -lX11 +# Win32 (example): +cl -O1 -ID:\apps\Python24\include -ID:\apps\Tcl849\include -DUSE_TCL_STUBS -LD tclpython.c D:\apps\Python24\libs\python24.lib D:\apps\Tcl849\lib\tclstub84.lib + */ #include #include #include + +#ifdef _MSC_VER +#define EXTERN __declspec(dllexport) +#endif static unsigned existingInterpreters = 0; static struct Tcl_HashTable threadStates; ---- What: [incr Tcl] itclpython Where: http://sourceforge.net/project/showfiles.php?group_id=13244&release_id=39973 Description: Extension permitting you to host python interpreters from itcl. Supports UNICODE return into Tcl and standard channel redirection. Currently at version 1.0 . Updated: 09/2001 Contact: mailto:davygrvy@pobox.com ---- '''Typcl''' is a python extension which embeds Tcl in Python. But it's a weird one... it's built with [Critcl]. Part of ''critlib'', see [http://www.equi4.com/critlib/]. -[jcw] You can also use the classical Tkinter package in Python to get a Tcl interpreter. On my computer Python 2.3 provides Tcl 8.4.3, quite up-to-date. [JM. Philippe] [VK] Tkinter works other way round: it uses Tcl and, with a help of Python wrapper classes, brings Tk GUI via Tcl, and it also equipped with [Tix]. pure-Tcl is possible within Tkinter, but widgets newly created in Tcl will not be interchangeable with Python+Tk widgets. ---- [Category Package]