[GRASS-SVN] r46527 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 3 02:46:12 EDT 2011
Author: annakrat
Date: 2011-06-02 23:46:11 -0700 (Thu, 02 Jun 2011)
New Revision: 46527
Modified:
grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxNviz: import wx.FoldPanelBar for older version wxPython
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2011-06-03 06:33:01 UTC (rev 46526)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2011-06-03 06:46:11 UTC (rev 46527)
@@ -35,8 +35,11 @@
try:
from agw import foldpanelbar as fpb
except ImportError: # if it's not there locally, try the wxPython lib.
- import wx.lib.agw.foldpanelbar as fpb
-
+ try:
+ import wx.lib.agw.foldpanelbar as fpb
+ except:
+ import wx.lib.foldpanelbar as fpb # versions <=2.5.5.1
+
import grass.script as grass
import globalvar
More information about the grass-commit
mailing list