dabo Commit
Revision 2175
Date: 2006-05-24 05:14:24 -0700 (Wed, 24 May 2006)
Author: ed
Changed:
U trunk/dabo/ui/uiwx/dPemMixin.py
Log:
Added the getSizerProp() and setSizerProp() methods to simplify management of
the appearance of objects.
Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py 2006-05-21 15:37:20 UTC (rev 2174)
+++ trunk/dabo/ui/uiwx/dPemMixin.py 2006-05-24 12:14:24 UTC (rev 2175)
@@ -608,8 +608,24 @@
self.Width += extraWidth
self.Height += extraHeight
self.layout()
+
+
+ def getSizerProp(self, prop):
+ """Gets the current setting for the given property from the
object's
+ ControllingSizer. Returns None if object is not in a sizer.
+ """
+ ret = None
+ if self.ControllingSizer:
+ ret = self.ControllingSizer.getItemProp(self, prop)
+ return ret
+ def setSizerProp(self, prop, val):
+ """Tells the object's ControllingSizer to adjust the requested
property."""
+ if self.ControllingSizer:
+ self.ControllingSizer.setItemProp(self, prop, val)
+
+
def createFileDropTarget(self, handler=None):
"""Sets up this control to accept files dropped on it."""
class FileDropTarget(wx.FileDropTarget):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev