]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ContextHelp.py
Script updates
[wxWidgets.git] / wxPython / demo / ContextHelp.py
index 561a597a5b23830dafab753c59417f35b80a2bc4..526a884c83394871833c3c3b9a097dcd927ea1ae 100644 (file)
@@ -1,11 +1,3 @@
-# 11/4/2003 - grimmtooth@softhome.net (Jeff Grimmett)
-# 
-# o Modified for V2.5
-#
-# 11/24/2003 - grimmtooth@softhome.net (Jeff Grimmett)
-# 
-# o Removed import of wx.help - now part of wx.core.
-#
 
 import  wx
 
@@ -43,8 +35,8 @@ class TestPanel(wx.Panel):
         cBtnText.SetHelpText("Some helpful text...")
 
         s = wx.BoxSizer(wx.HORIZONTAL)
-        s.Add(cBtn, 0, wxALL, 5)
-        s.Add(cBtnText, 0, wxALL, 5)
+        s.Add(cBtn, 0, wx.ALL, 5)
+        s.Add(cBtnText, 0, wx.ALL, 5)
         sizer.Add((20,20))
         sizer.Add(s)
 
@@ -97,8 +89,17 @@ class TestPanel(wx.Panel):
 #----------------------------------------------------------------------
 
 def runTest(frame, nb, log):
-    win = TestPanel(nb, log)
-    return win
+    if wx.Platform == "__WXMAC__":
+        dlg = wx.MessageDialog(
+                frame, 'The ContextHelp sample does not currently work well on this platform.',
+                'Sorry', wx.OK | wx.ICON_INFORMATION
+                )
+        dlg.ShowModal()
+        dlg.Destroy()
+        
+    else:
+        win = TestPanel(nb, log)
+        return win
 
 
 #----------------------------------------------------------------------