[python-win32] python and rtf

Mark Hammond mhammond at skippinet.com.au
Fri Aug 18 18:28:38 CEST 2006


You may be better off trying the various wx mailing lists - not many wx
people hang out here (I guess as most wx users are targetting more than
Windows!)

Regards,

Mark

> -----Original Message-----
> From: python-win32-bounces at python.org
> [mailto:python-win32-bounces at python.org]On Behalf Of Christopher
> Frauenberger
> Sent: Friday, 18 August 2006 1:12 AM
> To: python-win32 at python.org
> Subject: [python-win32] python and rtf
>
>
> 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
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>



More information about the Python-win32 mailing list