I want to be able to run a tcl script out of my python script. Specifically, I want to run a tcl script much like this.
I have some knowledge of python and none of tcl.
I have been trying things like:
import Tkinter
r=Tkinter.Tk()
r.call('source{DIS.tcl})' or r.tk.eval('source{DIS.tcl})'
Any ideas how i would access things out of the tcl script? Thanks!
Try this
import Tkinter
r=Tkinter.Tcl()
r.eval('source DIS.tcl')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With