How to save image in textrichctrl to file

I use richtext (req_des = rt.RichTextCtrl(right, size=(500,300),style=wx.TE_MULTILINE) )create a rihtextinput can input image and text,but i want to save all information to rtf or doc file ,then I use req_des.Value can only return text information to file ,cann’t return image.Can someone show me how to get pictures and text together in the richtext,thanks!

Sorry I didn’t see this earlier, but I’ve been out of town.

You might take a look at my PyParserDemo at . This code creates a wxRichTextCtrl, fills it programmatically for demonstration purposes, and supports saves in XML (RichText’s internal format), RTF, DOCx, HTML, and TXT formats, as well as loads from XML, RTF, and DOCx files it creates. It includes all the major formatting options and embedded images, but does not support tables in RTF or DOCx formats or hyperlinks in DOCx format.

If you are just saving and loading for your own app, I’d recommend the XML option because it’s dead simple.

David