dabo Commit
Revision 2742
Date: 2007-01-23 15:29:13 -0800 (Tue, 23 Jan 2007)
Author: Paul

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

Log:
Removed the Dabo Icon and the white background from dFormMain, as it was 
overdrawing the icon on top of the MDI page tabs on Linux, and there wasn't a 
built-in way to override the drawing, backcolor, size of the form, and position
of the form. If we want this stuff, we'll have to rebuild it using properties
and defaults set at the property level, not in the __init__() function.


Diff:
Modified: trunk/dabo/ui/uiwx/dFormMain.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMain.py     2007-01-23 21:55:12 UTC (rev 2741)
+++ trunk/dabo/ui/uiwx/dFormMain.py     2007-01-23 23:29:13 UTC (rev 2742)
@@ -12,37 +12,12 @@
        def __init__(self, preClass, parent=None, properties=None, *args, 
**kwargs):
                fm.dFormMixin.__init__(self, preClass, parent, properties, 
*args, **kwargs)
        
-               self.Size = (640, 480)
-               self.Position = (-1, -1)
+#              self.Size = (640, 480)
+#              self.Position = (-1, -1)
 
                if wx.Platform != '__WXMAC__':
                        self.CreateStatusBar()
 
-               
-       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.
-               self.BackColor = "White"
-               
-               # Set up the Dabo icon
-               self.bitmap = self.drawBitmap("dabo_lettering_250x100", x=10, 
y=0)
-               plat = self.Application.Platform.lower()
-               off = 150
-               if plat == "win":
-                       off = 180
-               elif plat == "gtk":
-                       off = 160
-               self.bitmap.DynamicYpos = lambda: self.Height - off
-               self.autoClearDrawings = True
-               self.bindEvent(dEvents.Resize, self.__onResize)
-       
-       
-       def __onResize(self, evt):
-               self.update()           
-
-       
        def _beforeClose(self, evt=None):
                forms2close = [frm for frm in self.Application.uiForms
                                if frm is not self]




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

Reply via email to