dabo Commit
Revision 2535
Date: 2006-12-12 22:07:53 -0800 (Tue, 12 Dec 2006)
Author: Nate
Changed:
U trunk/dabo/ui/uiwx/__init__.py
Log:
Fixed __init__.py to import dLed and dGlWindow. dGlWindow only imports if
PyOpenGl is present. Else, an info log message is displayed. I tested for a
couple of different situations and everything seemed to work out.
Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py 2006-12-13 02:44:47 UTC (rev 2534)
+++ trunk/dabo/ui/uiwx/__init__.py 2006-12-13 06:07:53 UTC (rev 2535)
@@ -132,10 +132,16 @@
from dToolBar import dToolBarItem
from dToggleButton import dToggleButton
from dTreeView import dTreeView
+from dLed import dLed
import dUICursors as dUICursors
import dShell
+try:
+ from dGlWindow import dGlWindow
+except ImportError:
+ dabo.infoLog.write(_("PyOpenGL not present, so dGlWindow is not
loaded."))
+
artConstants = {}
for item in dir(wx):
if item[:4] == "ART_":
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev