|
Re: Re: 2.5.5 release soon: msg#00030python.wxpython.devel
Robin Dunn: it works like a charm, thanks a lot! ======= 2005-04-06 12:05:48 Robin Dunn wrote: ======= >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! > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: wxPython-dev-unsubscribe@xxxxxxxxxxxxxxxxxxx >For additional commands, e-mail: wxPython-dev-help@xxxxxxxxxxxxxxxxxxx > >. = = = = = = = = = = = = = = = = = = = = Bruce Who HuXuZhao@xxxxxxxxxxx 2005-04-06 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: 2.5.5 release soon: 00030, Peter Damoc |
|---|---|
| Next by Date: | Re: 2.5.5 release soon: 00030, Ron |
| Previous by Thread: | Re: 2.5.5 release sooni: 00030, Robin Dunn |
| Next by Thread: | 新入学オメデトウ!準備は出来ましたか?04:25:12: 00030, xvxbaufi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |