wx Just Print!

Mark Carter alt.mcarter at gmail.com
Fri Jan 14 07:28:37 EST 2011


I'm using Python 2.6.5. I would like to be able to print an RTF file,
with no prompts for printers or anything like that.

Here's the code so far:
import wx.richtext
rtp = wx.richtext.RichTextPrinting()
rtp.PrintFile('C:\\path\\to\\file.rtf')

When I run it, it says: ... assert "(wxThePrintPaperDatabase*) NULL)
failed ...

What is the fix?



More information about the Python-list mailing list