X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..06b781c7c630ff8c2ab30211cb4351b4cb5bfb47:/wxPython/demo/wxHtmlWindow.py diff --git a/wxPython/demo/wxHtmlWindow.py b/wxPython/demo/wxHtmlWindow.py index eb2aac73e3..69d1d12e02 100644 --- a/wxPython/demo/wxHtmlWindow.py +++ b/wxPython/demo/wxHtmlWindow.py @@ -13,6 +13,12 @@ class MyHtmlWindow(wxHtmlWindow): def __init__(self, parent, id, log): wxHtmlWindow.__init__(self, parent, id) self.log = log + EVT_SCROLLWIN( self, self.OnScroll ) + + def OnScroll( self, event ): + print 'event.GetOrientation()',event.GetOrientation() + print 'event.GetPosition()',event.GetPosition() + event.Skip() def OnLinkClicked(self, linkinfo): @@ -133,6 +139,7 @@ class TestHtmlPanel(wxPanel): def OnPrint(self, event): + ##self.printer.GetPageSetupData().SetMarginTopLeft((100,100)) self.printer.PrintFile(self.html.GetOpenedPage()) #----------------------------------------------------------------------