<DIV>Thanks a lot!<BR><BR><B><I>Cameron Laird <claird@lairds.com></I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">In article <MAILMAN.133.1079626702.742.PYTHON-LIST@PYTHON.ORG>,<BR>Avik Ghose <AVIKGHOSE@YAHOO.CO.IN>wrote:<BR>.<BR>.<BR>.<BR>>How can I run a TCL script from within my python code?<BR>.<BR>.<BR>.<BR>There are several ways. Perhaps it's time to enumerate them in a<BR>Wikified essay ... In any case, I'll wildly speculate that this <BR>is the one that best models your situation:<BR><BR>import Tkinter<BR><BR>tcl_script = 'puts "The sum of 2 and 3 is [expr 2 + 3]."'<BR>Tkinter.Tk().tk.eval(tcl_script)<BR>-- <BR><BR>Cameron Laird <CLAIRD@PHASEIT.NET><BR>Business: http://www.Phaseit.net<BR>-- <BR>http://mail.python.org/mailman/listinfo/python-list</BLOCKQUOTE></DIV><BR><BR>Thanks and regards,<br>Avik Ghose<p><img src="http://in.yimg.com/i/in/specials/inpromotionslogo.jpg" width=28 height=22 border=0 
alt="Yahoo! India Promotions"></a>
<font face=arial size=-1>
<a href="http://in.rd.yahoo.com/specials/mailtg/*http://in.promos.yahoo.com" target="_blank"><b>Yahoo! India Promos</b>:</a>  Win a trip for 2 to Britain. 
<a href="http://in.rd.yahoo.com/specials/mailtg2/*http://in.promos.yahoo.com/bbcworld" target="_blank">Click here</a>.</font>