[python-win32] python and rtf

Ray Schumacher rays at blue-cove.com
Fri Aug 18 19:22:16 CEST 2006


I think the problem is that there is not a lexer for RTF in the TextCtrl family.
But:

For wx 2.7...
http://www.wxwidgets.org/wiki/index.php/Development:_wxRichTextEditor
http://wiki.wxwidgets.org/docbrowse.cgi/wxwin_wxrichtextctrl.html

I think you can use this for now:
http://www.anthemion.co.uk/wxwin/

Best,
Ray Schumacher

At 09:28 AM 8/18/2006, you wrote:

>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
>>
>
>_______________________________________________
>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