learning to program

Cameron Laird claird at lairds.com
Mon Sep 1 12:29:42 EDT 2003


In article <vl6qm09a7drv2f at corp.supernews.com>, I misled readers with:
>			.
>			.
>			.
>But not *much* invalid.  While I don't recommend it to 
>the original poster, as he's a beginner, it might amuse
>those with a little Python background to play with
>  import Tkinter
>  Tcl_script = "some Tcl script here"
>  Tkinter.tk.eval(Tcl_script)
			.
			.
			.
Incorrect.  I had a little editing problem in posting that;
I apologize to all the readers the missing "Tk()" has puzzled.
Here's a more useful example:
  import Tkinter
  Tcl_script = 'puts "This is an example."'
  Tkinter.Tk().tk.eval(Tcl_script)
-- 

Cameron Laird <Cameron at Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://phaseit.net/claird/home.html




More information about the Python-list mailing list