X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f3449b43280a855e57280e6848610ea9fdaa3bb..d14a1e28567de23c586bc80017073d0c39f8d18f:/wxPython/demo/ContextHelp.py?ds=sidebyside diff --git a/wxPython/demo/ContextHelp.py b/wxPython/demo/ContextHelp.py index 6985790b69..044e36dbe6 100644 --- a/wxPython/demo/ContextHelp.py +++ b/wxPython/demo/ContextHelp.py @@ -3,7 +3,7 @@ from wxPython.wx import * from wxPython.help import * #---------------------------------------------------------------------- -# We first have to set an application wide help provider. Normally you +# We first have to set an application-wide help provider. Normally you # would do this in your app's OnInit or in other startup code... provider = wxSimpleHelpProvider() @@ -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") @@ -81,8 +81,8 @@ def runTest(frame, nb, log): overview = """ -This demo shows how to encorporate Context Sensitive -help into your applicaiton using the wxSimpleHelpProvider class. +This demo shows how to incorporate Context Sensitive +help into your application using the wxSimpleHelpProvider class. """ @@ -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])]) +