홈페이지 : http://jfontain.free.fr/tclpython.htm
Embedded Python interpreters package for Tcl.
파이선 스크립트를 Tcl에서 실행시키기 위한 패키지입니다.
This package allows the execution of Python code from a Tcl interpreter, as in:
# execution of Python code from a Tcl interpreter
package require tclpython 4
set interpreter [python::interp new]
$interpreter exec {print("Hello World")}
#Hello World
puts [$interpreter eval 3/2.0]
#1.5
python::interp delete $interpreter
# execution of Tcl code from Python interpreters
package require tclpython 4
set interpreter [python::interp new]
puts [$interpreter eval {tcl.eval('clock format [clock seconds]')}]
python::interp delete $interpreter
Download
'Tcl & Tk > 확장 패키지 (Extension Package)' 카테고리의 다른 글
Tix 8.2.0b3 (0) | 2024.08.13 |
---|---|
trycatch 2.0 (0) | 2024.08.13 |
midilib for Tcl/Tk (0) | 2024.08.13 |
ODIE 1.3 (0) | 2024.08.13 |
mysqltcl 2.40 (0) | 2024.08.13 |