]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ContextHelp.py
fixed extraneous scrolling when scrollbars are added/removed (patch 788026; bug 746618)
[wxWidgets.git] / wxPython / demo / ContextHelp.py
index d66719655c45f94aed690cb96b398b8c05b581a9..7bca0c5156a38a1aa025dcbb1d47d965c58edefd 100644 (file)
@@ -53,7 +53,7 @@ class TestPanel(wxPanel):
         border = wxBoxSizer(wxVERTICAL)
         border.Add(sizer, 0, wxALL, 25)
 
-        self.SetAutoLayout(true)
+        self.SetAutoLayout(True)
         self.SetSizer(border)
         self.Layout()
 
@@ -64,7 +64,7 @@ class TestPanel(wxPanel):
 
 
     def OnCtxHelp2(self, evt):
-         self.log.write("OnCtxHelp: %s" % evt)
+         self.log.write("OnCtxHelp: %s\n" % evt)
          tip = wxTipWindow(self, "This is a wxTipWindow")
 
 
@@ -90,3 +90,10 @@ help into your applicaiton using the wxSimpleHelpProvider class.
 
 #----------------------------------------------------------------------
 
+
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
+