dabo Commit
Revision 4211
Date: 2008-06-28 09:01:12 -0700 (Sat, 28 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4211

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

Log:
Fixed a WindowsError when running under Windows.

Diff:
Modified: trunk/dabo/ui/uiwx/dPdfWindow.py
===================================================================
--- trunk/dabo/ui/uiwx/dPdfWindow.py    2008-06-28 01:23:07 UTC (rev 4210)
+++ trunk/dabo/ui/uiwx/dPdfWindow.py    2008-06-28 16:01:12 UTC (rev 4211)
@@ -11,10 +11,16 @@
 import dabo.dEvents as dEvents
 from dabo.ui import makeDynamicProperty
 
+# Need to define this exception class for x-platform
 try:
+       WindowsError
+except:
+       class WindowsError: pass
+
+try:
        import wx.lib.pdfwin as pdfwin
        PDFWindow = pdfwin.PDFWindow
-except (ImportError, AttributeError):
+except (ImportError, AttributeError, WindowsError):
        class Dummy(object):
                _dummy = True
        PDFWindow = Dummy




_______________________________________________
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/[EMAIL PROTECTED]

Reply via email to