diff -r c89fc366bebd -r 0ffb41625592 controls/CustomTree.py --- a/controls/CustomTree.py Thu Sep 02 21:36:29 2021 +0200 +++ b/controls/CustomTree.py Thu Sep 02 22:18:14 2021 +0200 @@ -120,9 +120,9 @@ _item, flags = self.HitTest(pos) bitmap_rect = self.GetBitmapRect() - if ((bitmap_rect.InsideXY(pos.x, pos.y) or + if ((bitmap_rect.Contains(pos.x, pos.y) or flags & wx.TREE_HITTEST_NOWHERE) and self.AddMenu is not None): - wx.CallAfter(self.PopupMenuXY, self.AddMenu, pos.x, pos.y) + wx.CallAfter(self.PopupMenu, self.AddMenu, pos.x, pos.y) event.Skip() def OnEraseBackground(self, event):