본문으로 바로가기

tclpython 4.1

category Tcl & Tk/확장 패키지 (Extension Package) 2024. 8. 13. 15:41

홈페이지 : 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

tclpython-4.1.tar.bz2
0.01MB
tclpython.html
0.01MB

'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