dabo Commit
Revision 1606
Date: 2005-11-30 06:24:51 -0800 (Wed, 30 Nov 2005)
Author: ed

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

Log:
This fixes a bug that would cause an error if the PageCount was passed as an 
argument, because the control's Sizer had not yet been created.


Diff:
Modified: trunk/dabo/ui/uiwx/dPageFrameNoTabs.py
===================================================================
--- trunk/dabo/ui/uiwx/dPageFrameNoTabs.py      2005-11-30 02:49:53 UTC (rev 
1605)
+++ trunk/dabo/ui/uiwx/dPageFrameNoTabs.py      2005-11-30 14:24:51 UTC (rev 
1606)
@@ -14,7 +14,8 @@
        user will have no way to do this.
        """
        def _afterInit(self):
-               self.Sizer = dabo.ui.dSizer()
+               if self.Sizer is None:
+                       self.Sizer = dabo.ui.dSizer()
                self._pageClass = dPage.dPage
                super(dPageFrameNoTabs, self)._afterInit()
                
@@ -33,6 +34,8 @@
                """
                if pgCls is None:
                        pgCls = self.PageClass
+               if self.Sizer is None:
+                       self.Sizer = dabo.ui.dSizer()
                pg = pgCls(self)
                self.Sizer.insert(pos, pg, 1, "x")
                self.layout()




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to