python中调用tcl是通过加载TkInter来实现的。

from Tkinter import Tcl  
tcl = Tcl()  
tcl.eval('source tu.tcl')  
tcl.eval('writelog hihi')

 

原文出自:http://blog.csdn.net/newyf_cun/article/details/8004170 

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2021-07-24
  • 2021-12-24
  • 2022-12-23
  • 2022-02-07
  • 2021-04-02
  • 2022-12-23
猜你喜欢
  • 2021-08-02
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案