dabo Commit
Revision 4695
Date: 2008-11-20 06:49:18 -0800 (Thu, 20 Nov 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4695

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

Log:
This fixes the issue with the Font property and dMaskedTextBox. We were only 
checking for the existence of a '_font' attribute, and apparently the masked 
classes defined that att themselves.


Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2008-11-13 23:04:45 UTC (rev 4694)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2008-11-20 14:49:18 UTC (rev 4695)
@@ -1920,7 +1920,7 @@
 
 
        def _getDaboFont(self):
-               if hasattr(self, "_font"):
+               if hasattr(self, "_font") and isinstance(self._font, 
dabo.ui.dFont):
                        v = self._font
                else:
                        v = self.Font = 
dabo.ui.dFont(_nativeFont=self.GetFont())




_______________________________________________
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