More tweaks and fixes from testing the demo modules

This commit is contained in:
Robin Dunn
2016-08-01 19:53:37 -07:00
parent aa9e47e0f5
commit 23fa4115ca
8 changed files with 72 additions and 40 deletions

View File

@@ -25,7 +25,6 @@ class TestPanel(wx.Panel):
# Init the context help button.
# And even include help text about the help button :-)
cBtn = wx.ContextHelpButton(self)
cBtn.Bind(wx.EVT_BUTTON, self.OnCtxHelpButton)
cBtn.SetHelpText("wx.ContextHelpButton")
cBtnText = wx.StaticText(self, -1,
@@ -72,12 +71,6 @@ class TestPanel(wx.Panel):
self.Layout()
def OnCtxHelpButton(self, evt):
# This starts a nested event loop which exits when an item has been
# clicked on, its help message shown and dismissed.
cshelp = wx.ContextHelp(self)
# On the second text control above, we intercept the help event. This is where
# we process it. Anything could happen here. In this case we're just printing
# some stuff about it, then passing it on with Skip(), at which point we