dabo Commit
Revision 5490
Date: 2009-10-24 08:30:23 -0700 (Sat, 24 Oct 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5490

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

Log:
Added protective code around setting the font to Arial. I just got an error 
report
from a customer running Windows XP SP3 where Arial was unavailable. Weird.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2009-10-24 15:16:37 UTC (rev 5489)
+++ trunk/dabo/ui/uiwx/dGrid.py 2009-10-24 15:30:23 UTC (rev 5490)
@@ -584,8 +584,13 @@
                                Underline=False)
                if sys.platform.startswith("win"):
                        # The wx default is quite ugly
-                       ret.Face = "Arial"
-                       ret.Size = 9
+                       try:
+                               ret.Face = "Arial"
+                               ret.Size = 9
+                       except dException.FontNotFoundException:
+                               # I had this happen to a customer running Win 
XP. No idea why Arial
+                               # would be missing. --pkm 2009-10-24
+                               pass
                return ret
 
 




_______________________________________________
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