jeudi 14 juillet 2016

Printing a canvas from Tkinter


I have created a canvas with rectangles and labels only which I would like to print. I have only found how to save the canvas to a postscript file like so:

self.canvas.postscript(file="my_drawing.ps", colormode='color')

If necessary I would be happy to just print the whole window if that is easier.

How can I print the canvas?

This program will be used on Windows XP or 7.


Aucun commentaire:

Enregistrer un commentaire