0
votes

I need to run TCL script from python server which uses framework written in Python. TCL scripts uses a framework written in TCL. So is there a way where i can integrate TCL framework to python framework and execute my scripts.

1
Can you be more specific? On the basis of what you've said so far, it could be anything from trivial to incredibly difficult… - Donal Fellows

1 Answers

1
votes

It seems that Tkinter is what you are looking for.

If you have a file of Tcl code in a file called foo.tcl and you want to call the Tcl function foo_bar then:

import Tkinter
root = Tkinter.Tk()
root.tk.eval('source {foo.tcl}')
root.tk.eval('foo_bar')

I'd take a look into it: