[GRASS-SVN] r36967 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 3 07:05:23 EDT 2009


Author: martinl
Date: 2009-05-03 07:05:22 -0400 (Sun, 03 May 2009)
New Revision: 36967

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz.py
Log:
glynn: Remove PyOpenGL references
       (merge from trunk, r33474)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-05-03 10:02:02 UTC (rev 36966)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-05-03 11:05:22 UTC (rev 36967)
@@ -341,11 +341,6 @@
                         "included with this build "
                         "of wxPython! Switching back to "
                         "2D display mode.\n\nDetails: %s" % nviz.errorMsg)
-            if not nviz.haveOpenGL:
-                msg = _("Unable to start Nviz. The OpenGL package "
-                        "was not found. You can get it "
-                        "at http://PyOpenGL.sourceforge.net. "
-                        "Switching back to 2D display mode.\n\nDetails: %s" % nviz.errorMsg)
             if not nviz.haveNviz:
                 msg = _("Unable to start Nviz. Python extension "
                         "for Nviz was not found or loaded properly. "

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz.py	2009-05-03 10:02:02 UTC (rev 36966)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz.py	2009-05-03 11:05:22 UTC (rev 36967)
@@ -29,13 +29,6 @@
 except ImportError, e:
     haveGLCanvas = False
     errorMsg = e
-try:
-    from OpenGL.GL import *
-    from OpenGL.GLUT import *
-    haveOpenGL = True
-except ImportError, e:
-    haveOpenGL = False
-    errorMsg = e
 
 import globalvar
 try:



More information about the grass-commit mailing list