dabo Commit
Revision 3672
Date: 2007-11-13 09:53:26 -0800 (Tue, 13 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3672

Changed:
U   trunk/dabo/ui/uiwx/dGlWindow.py

Log:
Orcun Avsar reported that Dabo would crash if OpenGL was installed, but could 
not be properly imported. This catches and logs the error, but allows Dabo to 
continue to run (without access to the dGlWindow class, of course).


Diff:
Modified: trunk/dabo/ui/uiwx/dGlWindow.py
===================================================================
--- trunk/dabo/ui/uiwx/dGlWindow.py     2007-11-13 16:23:01 UTC (rev 3671)
+++ trunk/dabo/ui/uiwx/dGlWindow.py     2007-11-13 17:53:26 UTC (rev 3672)
@@ -18,6 +18,11 @@
        openGL = True
 except ImportError:
        openGL = False
+except StandardError, e:
+       # Report the error, and abandon the import
+       dabo.errorLog.write(_("Error importing OpenGL: %s") % e)
+       openGL = False
+       
 
 class dGlWindow(cm.dControlMixin, glcanvas.GLCanvas):
        def __init__(self, parent, properties=None, attProperties=None, *args, 
**kwargs):




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to