X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7a014180017908d32f0af32ebfa140fdc82b390..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/HtmlWindow.py 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)