[python-win32] python and rtf

Christopher Frauenberger frauenberger at dcs.qmul.ac.uk
Thu Aug 17 17:12:13 CEST 2006


Hi,

since python 2.3.4 and wxPython 0.6 it was possible to render rtf in  
wxTextCtr like

class RTFWindow(wx.TextCtrl):

   def __init__ (self,parent):
     wx.TextCtrl.__init__(self,parent,style = wx.TE_MULTILINE |  
wx.TE_RICH | wx.TE_READONLY)

...
win = RTFWindow(None)
win.rtfSubWin.LoadFile(path)

and it would render RTF correctly.

However, since then, I only get the source of the RTF as plain  
text...  any ideas why this is?

Is there any way to easily convert the RTF into HTML in python? Then  
I could use wx.HTML...

thanks for advice
Chris



More information about the Python-win32 mailing list