Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将如何打印 Python Tkinter.Canvas 小部件的内容?
我已经读到可以从这个控件打印到 postscript 打印机,但是很难找到示例。
那么,有什么想法需要打印内容(包括图像)吗?
如果你有一个跨平台的方法就更好了!
AFAIK it can only be done using the postscript method from the Canvas. This generates a postscript file with the canvas contents.
postscript
Check the documentation for details about this method.