|
Re: 2.5.5 release soon: msg#00026python.wxpython.devel
Bruce Who wrote: > Robin Dunn: > > I have post this before, but This sample code still doesn't work. > OnTreeTooltip() method is called but I cannot see any tooltips, :-< . > In a previous post, Robin said this works for him, could anybody else test > the code? > python2.4, wxpython2.5.4.1-ansi, WinXP > > > def OnTreeTooltip(self, event): > ## this method is never called! > print "Tool tip!" #debug > itemtext = self.tree.GetItemText(event.GetItem()) > event.SetToolTip("This is a ToolTip for %s!" % itemtext) > event.Skip() Try removing the last line. The default event handler veto's the event so it won't set the tooltip, so you if you do want the tooltip to be set you don't want the default handler to be called. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: 2.5.5 release soon: 00026, Bruce Who |
|---|---|
| Next by Date: | Minor rcsizer patch to return sizer item from Add calls: 00026, Shane Holloway (IEEE) |
| Previous by Thread: | Re: 2.5.5 release sooni: 00026, Bruce Who |
| Next by Thread: | Re: Re: 2.5.5 release soon: 00026, Bruce Who |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |