]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxHtmlWindow.py
Added wxRightTextCtrl from Josu Oyanguren
[wxWidgets.git] / wxPython / demo / wxHtmlWindow.py
index e2e902d865b3cb567204b0bec86d597ba319675a..cd15d3f131dfebb44157247761b35946441ff7d0 100644 (file)
@@ -32,8 +32,13 @@ class MyHtmlWindow(wxHtmlWindow):
         self.log.WriteText('OnSetTitle: %s\n' % title)
         self.base_OnSetTitle(title)
 
-##     def __del__(self):
-##         print 'MyHtmlWindow.__del__'
+    def OnCellMouseHover(self, cell, x, y):
+        self.log.WriteText('OnCellMouseHover: %s, (%d %d)\n' % (cell, x, y))
+        self.base_OnCellMouseHover(cell, x, y)
+
+    def OnCellClicked(self, cell, x, y, evt):
+        self.log.WriteText('OnCellClicked: %s, (%d %d)\n' % (cell, x, y))
+        self.base_OnCellClicked(cell, x, y, evt)
 
 
 class TestHtmlPanel(wxPanel):
@@ -139,6 +144,7 @@ class TestHtmlPanel(wxPanel):
 
 
     def OnPrint(self, event):
+        ##self.printer.GetPageSetupData().SetMarginTopLeft((100,100))
         self.printer.PrintFile(self.html.GetOpenedPage())
 
 #----------------------------------------------------------------------