开发者

How to print contents of a tkinter.Canvas widget?

开发者 https://www.devze.com 2022-12-21 15:43 出处:网络
How would I print contents of a Python Tkinter.Canvas widget? I\'ve read that it\'s possible to print to a postscript printer from this contr开发者_开发问答ol but examples are hard to come by.

How would I print contents of a Python Tkinter.Canvas widget?

I've read that it's possible to print to a postscript printer from this contr开发者_开发问答ol but examples are hard to come by.

So, any ideas what is needed to print the contents (including images)?

If you've got a cross-platform method all the better!


AFAIK it can only be done using the postscript method from the Canvas. This generates a postscript file with the canvas contents.

Check the documentation for details about this method.

0

精彩评论

暂无评论...
验证码 换一张
取 消