开发者

How to print contents of a tkinter.Canvas widget?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜