X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7a014180017908d32f0af32ebfa140fdc82b390..0dcc6f22870613bff993a26bd512c38fe29d56ba:/wxPython/demo/HtmlWindow.py?ds=inline diff --git a/wxPython/demo/HtmlWindow.py b/wxPython/demo/HtmlWindow.py index 3e39f7ebd5..42e24bddd6 100644 --- a/wxPython/demo/HtmlWindow.py +++ b/wxPython/demo/HtmlWindow.py @@ -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)