]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxHtmlWindow.py
wxBell --> wx.Bell
[wxWidgets.git] / wxPython / demo / wxHtmlWindow.py
index a7b8c01e1a74cbd8095d330e47a0675bf7c1e60f..edfe7027b674e1af1c9c95c7ec072cc7e1124ecc 100644 (file)
@@ -2,17 +2,24 @@
 #
 # o Updated for wx namespace
 # 
+# 12/13/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o got the wxpTag stuff working right.
+# 
+# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o wxScrolledMessageDialog -> ScrolledMessageDialog
+# 
 
 import  os
 import  sys
 
 import  wx
-import  wx.html         as  html
+import  wx.html as  html
+import  wx.lib.wxpTag
 
 from Main import opj
 
-##wxTrap()
-
 #----------------------------------------------------------------------
 
 # This shows how to catch the OnLinkClicked non-event.  (It's a virtual
@@ -179,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())
 
 #----------------------------------------------------------------------