]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/customtreectrl.py
don't clear the tooltip unless there is one.
[wxWidgets.git] / wxPython / wx / lib / customtreectrl.py
index 1616f48adbcf55f63e7bb6e0a7f07729a9b7eaea..ae7b8cd69e6d73c9837cfa14f119026b6e30a03c 100644 (file)
@@ -1929,7 +1929,6 @@ class CustomTreeCtrl(wx.ScrolledWindow):
         # with associated widgets.
         self.SetFocus()
 
-        return True
 
 
     def OnDestroy(self, event):
@@ -4249,7 +4248,7 @@ class CustomTreeCtrl(wx.ScrolledWindow):
 
             oldpen = dc.GetPen()
             dc.SetPen(wx.TRANSPARENT_PEN)
-            x, y = self.GetPosition()
+            x = 0
             w, h = self.GetSize()
 
             itemrect = wx.Rect(x, item.GetY()+offset, w, total_h-offset)