]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/HtmlWindow.py
added missing button state
[wxWidgets.git] / wxPython / demo / HtmlWindow.py
index 3e39f7ebd551771bccf1c2db7d4c213b0cfc94fa..42e24bddd66d0b15698baa169b6ad29cef83a93b 100644 (file)
@@ -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)