~ubuntu-branches/ubuntu/karmic/grass/karmic

« back to all changes in this revision

Viewing changes to gui/wxpython/gui_modules/nviz.py

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2009-07-13 13:34:03 UTC
  • mfrom: (3.1.15 karmic)
  • Revision ID: james.westby@ubuntu.com-20090713133403-0x81m7hb1q06zu13
Tags: 6.4.0~rc5-2
* Added a grass menu item (Hamish).
* Added a grass.menu.in template with related icon.
* Added a simple x-grass wrapper to allow running grass without a pre-running
  controlling terminal. At least it works within ordinary WMs launchers.
  (closes: #503371)
* Added newlocation.dpatch patch to manage correctly new locations.
  (closes: #533738)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
except ImportError, e:
30
30
    haveGLCanvas = False
31
31
    errorMsg = e
32
 
try:
33
 
    from OpenGL.GL import *
34
 
    from OpenGL.GLUT import *
35
 
    haveOpenGL = True
36
 
except ImportError, e:
37
 
    haveOpenGL = False
38
 
    errorMsg = e
39
32
 
40
33
import globalvar
41
34
try:
45
38
except ImportError, e:
46
39
    haveNviz = False
47
40
    errorMsg = e
 
41
    print >> sys.stderr, "\nWARNING: Nviz extension (3D view) is not available (%s). " % e
48
42
 
49
43
if haveNviz:
50
44
    GLWindow = nviz_mapdisp.GLWindow