Using Tk code directly from Tkinter

Volker Dobler volker.dobler at
Tue Aug 27 11:46:36 CEST 2002


I'd like to use Tk code directly in Tkinter:
gnuplot can produce plot output as Tk commands stored
in a file ''. Basically a procedure gnuplot is defined
which needs a canvas widget. Calling this procedure will
draw the plot in the given canvas.  Is it possible to feed
such a file into Tk via Tkinter or would it be easier to
write a new terminal for gnuplot which outputs Tkinter
code to be execed in Python?


More information about the Python-list mailing list