dabo Commit
Revision 2190
Date: 2006-06-01 11:26:02 -0700 (Thu, 01 Jun 2006)
Author: paul
Changed:
U trunk/dabo/lib/datanav/Page.py
Log:
Moved the hack of getting the select scrollbars to appear to the select page,
as the FitInside() call was resulting in the edit page items to lose their
sizing until the form is manually resized.
Diff:
Modified: trunk/dabo/lib/datanav/Page.py
===================================================================
--- trunk/dabo/lib/datanav/Page.py 2006-06-01 15:22:41 UTC (rev 2189)
+++ trunk/dabo/lib/datanav/Page.py 2006-06-01 18:26:02 UTC (rev 2190)
@@ -72,17 +72,6 @@
class Page(dabo.ui.dPage):
- def _createItems(self):
- self.super()
-
- ## The following line is needed to get the Select page
scrollbars to lay
- ## out without the user having to resize manually. I tried
putting it in
- ## dPage but that caused problems with the Class Designer. We
need to
- ## figure out the best way to abstract this wx call, or find a
different
- ## way to get the scrollbars.
- self.Sizer.FitInside(self)
-
-
def newRecord(self, ds=None):
""" Called by a browse grid when the user wants to add a new
row.
"""
@@ -127,6 +116,17 @@
class SelectPage(Page):
+ def _createItems(self):
+ self.super()
+
+ ## The following line is needed to get the Select page
scrollbars to lay
+ ## out without the user having to resize manually. I tried
putting it in
+ ## dPage but that caused problems with the Class Designer. We
need to
+ ## figure out the best way to abstract this wx call, or find a
different
+ ## way to get the scrollbars.
+ self.Sizer.FitInside(self)
+
+
def afterInit(self):
super(SelectPage, self).afterInit()
# Holds info which will be used to create the dynamic
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev