2.5.5 release soon

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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-help@lists.wxwidgets.org

.

= = = = = = = = = = = = = = = = = = = =
      
Bruce Who
HuXuZhao@hotmail.com
2005-04-06