How to use Tkinter.canvas.postscript()?
martin.franklin at westerngeco.com
Thu Jul 5 06:02:30 EDT 2001
Take a look into the Tk commands help..canvas
I do like this but I can't remember which of these options do what.......
XiaoQin Xia wrote:
> Hi, everybody,
> Here is some code to use Tkinter.canvas.postscript()
> from Tkinter import *
> win.title("A Chart ")
> canvas=Canvas(win)#, background="white")
> canvas.pack(padx=0, pady=0)
> # here is some code using canvas to draw some lines and words.
> f=open("chart.ps", "wb")
> The problem is, after type the command " lpr chart.ps", I got only a blank
> paper, instead of a chart I saw on screen.
> Xiao-Qin Xia
More information about the Python-list