[GRASS-SVN] r41219 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 28 07:46:41 EST 2010


Author: martinl
Date: 2010-02-28 07:46:41 -0500 (Sun, 28 Feb 2010)
New Revision: 41219

Modified:
   grass/trunk/gui/wxpython/gui_modules/help.py
Log:
wxGUI: try to import wx.lib.agw.customtreectrl first (see r41218)


Modified: grass/trunk/gui/wxpython/gui_modules/help.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/help.py	2010-02-28 12:42:44 UTC (rev 41218)
+++ grass/trunk/gui/wxpython/gui_modules/help.py	2010-02-28 12:46:41 UTC (rev 41219)
@@ -22,7 +22,10 @@
 import os
 
 import wx
-import wx.lib.agw.customtreectrl as CT
+try:
+    import wx.lib.agw.customtreectrl as CT
+except ImportError:
+    import wx.lib.customtreectrl as CT
 import wx.lib.flatnotebook as FN
 import  wx.lib.scrolledpanel as scrolled
 from wx.lib.wordwrap import wordwrap



More information about the grass-commit mailing list