use wxRTTI to construct the right class of wxHtmlCell
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,6 +33,9 @@ class MyHtmlWindow(html.HtmlWindow):
|
||||
|
||||
def OnCellClicked(self, cell, x, y, evt):
|
||||
self.log.WriteText('OnCellClicked: %s, (%d %d)\n' % (cell, x, y))
|
||||
if isinstance(cell, html.HtmlWordCell):
|
||||
sel = html.HtmlSelection()
|
||||
self.log.WriteText(' %s\n' % cell.ConvertToText(sel))
|
||||
super(MyHtmlWindow, self).OnCellClicked(cell, x, y, evt)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user