dabo Commit
Revision 4756
Date: 2008-12-02 15:14:15 -0800 (Tue, 02 Dec 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4756
Changed:
U trunk/dabo/ui/dPemMixinBase.py
Log:
Fixed Bottom and Right properties to get set after the wx object is
fully instantiated. Thanks to Alex Tweedly for reporting the issue.
Diff:
Modified: trunk/dabo/ui/dPemMixinBase.py
===================================================================
--- trunk/dabo/ui/dPemMixinBase.py 2008-12-02 21:27:01 UTC (rev 4755)
+++ trunk/dabo/ui/dPemMixinBase.py 2008-12-02 23:14:15 UTC (rev 4756)
@@ -176,14 +176,20 @@
return self.Top + self.Height
def _setBottom(self, bottom):
- self.Top = int(bottom) - self.Height
+ if self._constructed():
+ self.Top = int(bottom) - self.Height
+ else:
+ self._properties["Bottom"] = bottom
def _getRight(self):
return self.Left + self.Width
def _setRight(self, right):
- self.Left = int(right) - self.Width
+ if self._constructed():
+ self.Left = int(right) - self.Width
+ else:
+ self._properties["Right"] = right
Bottom = property(_getBottom, _setBottom, None,
_______________________________________________
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/[EMAIL PROTECTED]