dabo Commit
Revision 1500
Date: 2005-10-31 22:02:36 -0800 (Mon, 31 Oct 2005)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dFormMain.py
Log:
The automatic sizer is needed in dFormMain on Linux when MDI forms are used,
or the built-in pageframe doesn't resize.
Diff:
Modified: trunk/dabo/ui/uiwx/dFormMain.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMain.py 2005-11-01 03:26:21 UTC (rev 1499)
+++ trunk/dabo/ui/uiwx/dFormMain.py 2005-11-01 06:02:36 UTC (rev 1500)
@@ -19,17 +19,9 @@
if wx.Platform != '__WXMAC__':
self.CreateStatusBar()
- # Go figure: in order to get rid of the automatic sizing on
forms,
- # you gotta set the sizer to something other than None!
- self.Sizer = dSizer.dSizer("vertical")
- self.Sizer.layout()
-
- def afterInit(self):
- super(dFormMainBase, self).afterInit()
- ## caption and status text handled in uiApp now
- #self.Caption = "Dabo"
- #self.setStatusText("Welcome to Dabo!")
+ def _afterInit(self):
+ super(dFormMainBase, self)._afterInit()
# This is to accomodate the Dabo icon, which has a white
background.
# We should set the white as transparent and set a mask, though.
@@ -96,6 +88,7 @@
preClass = wx.PreMDIParentFrame
dFormMainBase.__init__(self, preClass, parent, properties,
*args, **kwargs)
+
if dabo.settings.MDI:
dFormMain = dFormMainParentMDI
else:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev