Commit 590cf791 authored by sumpfralle's avatar sumpfralle

r1058@erker: lars | 2010-06-30 18:17:28 +0200

 added additional check for GL support of the graphic driver


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@429 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent eedcc629
...@@ -36,6 +36,9 @@ DEPENDENCY_DESCRIPTION = { ...@@ -36,6 +36,9 @@ DEPENDENCY_DESCRIPTION = {
"gtkgl": ("GTK extension for OpenGL", "gtkgl": ("GTK extension for OpenGL",
"Install the package 'python-gtkglext1'", "Install the package 'python-gtkglext1'",
"see http://www.bonifazi.eu/appunti/pygtk_windows_installer.exe"), "see http://www.bonifazi.eu/appunti/pygtk_windows_installer.exe"),
"gl": ("OpenGL support of graphic driver",
"Your current graphic driver does not support OpenGL. Please consult " \
+ "'glxgears' to locate this problem."),
"togl": ("Tk for OpenGL", "togl": ("Tk for OpenGL",
"see http://downloads.sourceforge.net/togl/", "see http://downloads.sourceforge.net/togl/",
"see http://downloads.sourceforge.net/togl/"), "see http://downloads.sourceforge.net/togl/"),
...@@ -57,8 +60,11 @@ def dependency_details_gtk(): ...@@ -57,8 +60,11 @@ def dependency_details_gtk():
try: try:
import gtk.gtkgl import gtk.gtkgl
result["gtkgl"] = True result["gtkgl"] = True
result["gl"] = True
except ImportError: except ImportError:
result["gtkgl"] = False result["gtkgl"] = False
except RuntimeError:
result["gl"] = False
try: try:
import OpenGL import OpenGL
result["opengl"] = True result["opengl"] = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment