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,6 +3562,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
|
|||||||
for child in self._itemWithWindow:
|
for child in self._itemWithWindow:
|
||||||
if not self.IsVisible(child):
|
if not self.IsVisible(child):
|
||||||
wnd = child.GetWindow()
|
wnd = child.GetWindow()
|
||||||
|
if wnd:
|
||||||
wnd.Hide()
|
wnd.Hide()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user