I have created a Desktop Application and encountered with a minor issue regarding the wx.RichTextCtrl.
I created a table inside the RichTextCtrl editor using WriteTable() method.
self.richEditor.WriteTable(2,2)
I can retrieve the table content using the RichTextXMLHandler Class, and that works fine!
<?xml version="1.0" encoding="UTF-8"?> <richtext version="1.0.0.0" xmlns="http://www.wxwidgets.org"> <paragraphlayout textcolor="#000000" fontpointsize="9" fontfamily="70" fontstyle="90" fontweight="400" fontunderlined="0" fontface="Segoe UI" alignment="1" parspacingafter="10" parspacingbefore="0" linespacing="10" margin-left="5,4098" margin-right="5,4098" margin-top="5,4098" margin-bottom="5,4098"> <paragraph> <table textcolor="#000000" fontpointsize="9" fontfamily="70" fontstyle="90" fontweight="400" fontunderlined="0" fontface="Segoe UI" alignment="1" parspacingafter="10" parspacingbefore="0" linespacing="10" margin-left="5,4098" margin-right="5,4098" margin-top="5,4098" margin-bottom="5,4098" rows="2" cols="2"> <cell textcolor="#0000FF" bgcolor="#FF0000"><paragraph><text>Anica</text></paragraph></cell> <cell textcolor="#0000FF" bgcolor="#FF0000"><paragraph><text>Basto</text></paragraph></cell> <cell textcolor="#0000FF" bgcolor="#FF0000"><paragraph><text>Canon</text></paragraph></cell> <cell textcolor="#0000FF" bgcolor="#FF0000"><paragraph><text>Dista</text></paragraph></cell> </table> </paragraph> </paragraphlayout> </richtext>
But cannot retrieve the table content using the RichTextHTMLHandler Class, (No table content in the output)
b'<html><head></head><body>\r\n<font face="Segoe UI" size="2" color="#000000" ><p align="left"><font face="Segoe UI" size="2" color="#000000" ></font></p>\r\n\r\n</font></body></html>\r\n'
Would anybody kindly advice to find a solution or an alternative method?