0

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.

asked Sep 29, 2014 at 5:06
2

1 Answer 1

1

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:

answered Nov 4, 2014 at 2:17
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.