dabo Commit
Revision 3143
Date: 2007-05-27 08:39:16 -0700 (Sun, 27 May 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3143

Changed:
U   trunk/dabo/ui/uiwx/dFont.py
U   trunk/dabo/ui/uiwx/dPage.py

Log:
Changed dPage to inherit from dScrollPanel instead of dPanel. This seems to 
work better in my classes; if anyone encounters any problems, though, please 
let me know about it and we can change it back.

Changed dFont so that if you pass an empty string to the FontFace property, it 
is ignored.


Diff:
Modified: trunk/dabo/ui/uiwx/dFont.py
===================================================================
--- trunk/dabo/ui/uiwx/dFont.py 2007-05-27 15:33:46 UTC (rev 3142)
+++ trunk/dabo/ui/uiwx/dFont.py 2007-05-27 15:39:16 UTC (rev 3143)
@@ -48,6 +48,8 @@
                return self._nativeFont.GetFaceName()
 
        def _setFace(self, val):
+               if not val:
+                       return
                availableFonts = dabo.ui.getAvailableFonts()
                def trySetFont(val):
                        if val in availableFonts:

Modified: trunk/dabo/ui/uiwx/dPage.py
===================================================================
--- trunk/dabo/ui/uiwx/dPage.py 2007-05-27 15:33:46 UTC (rev 3142)
+++ trunk/dabo/ui/uiwx/dPage.py 2007-05-27 15:39:16 UTC (rev 3143)
@@ -6,13 +6,14 @@
 
 
 class dPage(dPanel.dScrollPanel):
+#class dPage(dPanel.dPanel):
        """Creates a page to appear as a tab in a pageframe."""
        def __init__(self, *args, **kwargs):
                self._caption = ""
                kwargs["AlwaysResetSizer"] = self._extractKey(kwargs, 
"AlwaysResetSizer", True)
                super(dPage, self).__init__(*args, **kwargs)
-               self._baseClass = dPage 
-               self.SetScrollbars(10, 10, -1, -1)
+               self._baseClass = dPage
+#              self.SetScrollbars(10, 10, -1, -1)
 
                
        def _afterInit(self):




_______________________________________________
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