diff -r ccf59c1f0b45 -r c1e5b9f19483 controls/CustomTree.py --- a/controls/CustomTree.py Thu Aug 17 16:26:32 2017 +0300 +++ b/controls/CustomTree.py Thu Aug 17 17:25:17 2017 +0300 @@ -117,8 +117,8 @@ item, flags = self.HitTest(pos) bitmap_rect = self.GetBitmapRect() - if (bitmap_rect.InsideXY(pos.x, pos.y) or - flags & wx.TREE_HITTEST_NOWHERE) and self.AddMenu is not None: + if ((bitmap_rect.InsideXY(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) event.Skip()