0

Hi,

Is it possible to save the contents of a RichTextCtrl with the formatting?

I'm writing a text editor to learn wxpython and when I use the SaveFile method it saves the data as plain text. PrintFile works the same.

Doug

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by dougn
0
wx.TextCtrl(panel,-1,style=wx.TE_MULTILINE|wx.TE_RICH2)

wxpython will save textctrl as text format. It will keep basic formating like indentaions,spaces, etc.

But to save to doc,docx or other format. You will have to convert to that format.
;)

Edited by richieking: n/a

0

Ok, well that is disappointing because I made a very powerful and useless editor. However, the purpose was to learn to write a GUI in wxpython and I accomplished that goal. I like wxpython a lot more than tkinter, now.
Thanks,
Doug

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.