From a369962eda5a915972b6c0bf43ea888b2564a00b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 9 May 2007 21:17:38 +0000 Subject: [PATCH] Bail out of SetTreeModified if not using the CustomTreeCtrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/Main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 132175d2dc..7f3eac0e64 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -1568,7 +1568,8 @@ class wxPythonDemo(wx.Frame): def SetTreeModified(self, modifiedFilename, setIcon): - + if not USE_CUSTOMTREECTRL: + return self.tree.Freeze() treeItemText = os.path.split(os.path.splitext(modifiedFilename)[0])[1] self.LoopTreeCtrl(self.root, treeItemText, setIcon) @@ -2190,7 +2191,7 @@ is loaded in another tab for you to browse and learn from. #---------------------------------------------------------------------------- if __name__ == '__main__': - __name__ = 'MainWithoutFNB' + __name__ = 'Main' main() #----------------------------------------------------------------------------