X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b881fc787d2823bdd8a415080b82feee90804a17..31c07ca5a3699fbd6051fd9b8e481cd6ea5bd9c3:/wxPython/demo/wxHtmlWindow.py diff --git a/wxPython/demo/wxHtmlWindow.py b/wxPython/demo/wxHtmlWindow.py index 0c6a0118a9..edfe7027b6 100644 --- a/wxPython/demo/wxHtmlWindow.py +++ b/wxPython/demo/wxHtmlWindow.py @@ -6,6 +6,10 @@ # # o got the wxpTag stuff working right. # +# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o wxScrolledMessageDialog -> ScrolledMessageDialog +# import os import sys @@ -182,17 +186,17 @@ class TestHtmlPanel(wx.Panel): def OnViewSource(self, event): - import wx.lib.dialogs as dlgs + import wx.lib.dialogs source = self.html.GetParser().GetSource() - dlg = dlgs.wxScrolledMessageDialog(self, source, 'HTML Source') + dlg = wx.lib.dialogs.ScrolledMessageDialog(self, source, 'HTML Source') dlg.ShowModal() dlg.Destroy() def OnPrint(self, event): - ##self.printer.GetPageSetupData().SetMarginTopLeft((100,100)) + self.printer.GetPrintData().SetPaperId(wx.PAPER_LETTER) self.printer.PrintFile(self.html.GetOpenedPage()) #----------------------------------------------------------------------