Ensure that wnd is not None before calling Hide
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3562,7 +3562,8 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
|
||||
for child in self._itemWithWindow:
|
||||
if not self.IsVisible(child):
|
||||
wnd = child.GetWindow()
|
||||
wnd.Hide()
|
||||
if wnd:
|
||||
wnd.Hide()
|
||||
|
||||
|
||||
def Unselect(self):
|
||||
|
Reference in New Issue
Block a user