From bed728529912a3b0c20119fddcf816c2d514f006 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 22 Apr 2005 15:16:26 +0000 Subject: [PATCH] Bind the EVT_HELP events to the textctrls, not the panel git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/ContextHelp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wxPython/demo/ContextHelp.py b/wxPython/demo/ContextHelp.py index a3aea8b3e6..0367a5b84e 100644 --- a/wxPython/demo/ContextHelp.py +++ b/wxPython/demo/ContextHelp.py @@ -54,14 +54,14 @@ class TestPanel(wx.Panel): text.SetHelpText("Yet another context help message.") sizer.Add((20,20)) sizer.Add(text) - self.Bind(wx.EVT_HELP, self.OnCtxHelp, text) + text.Bind(wx.EVT_HELP, self.OnCtxHelp, text) text = wx.TextCtrl(self, -1, "This one displays the tip itself...", size=(240, 60), style = wx.TE_MULTILINE) sizer.Add((20,20)) sizer.Add(text) - self.Bind(wx.EVT_HELP, self.OnCtxHelp2, text) - + text.Bind(wx.EVT_HELP, self.OnCtxHelp2, text) + border = wx.BoxSizer(wx.VERTICAL) border.Add(sizer, 0, wx.ALL, 25) @@ -82,7 +82,7 @@ class TestPanel(wx.Panel): # Here, we print a note about it, generate our own tip window, and, # unlike last time, we don't pass it on to the underlying provider. def OnCtxHelp2(self, evt): - self.log.write("OnCtxHelp: %s\n" % evt) + self.log.write("OnCtxHelp2: %s\n" % evt) tip = wx.TipWindow(self, "This is a wx.TipWindow") -- 2.50.0