dabo Commit
Revision 2520
Date: 2006-12-08 13:58:05 -0800 (Fri, 08 Dec 2006)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dFoldPanelBar.py
Log:
Fixed object crawling in dFoldPanelBar.
Ed, I think this resolves everything, at least it appears so through
interactive testing with the command window.
Diff:
Modified: trunk/dabo/ui/uiwx/dFoldPanelBar.py
===================================================================
--- trunk/dabo/ui/uiwx/dFoldPanelBar.py 2006-12-08 20:48:18 UTC (rev 2519)
+++ trunk/dabo/ui/uiwx/dFoldPanelBar.py 2006-12-08 21:58:05 UTC (rev 2520)
@@ -186,6 +186,10 @@
self._bar.Collapse(self)
+ def _getParent(self):
+ return self._bar
+
+
BarColor1 = property(_getBarColor1, _setBarColor1, None,
_("Main color for the caption bar (dColor)"))
@@ -219,6 +223,8 @@
Expanded = property(_getExpanded, _setExpanded, None,
_("Is the panel's contents visible? (bool)"))
+ Parent = property(_getParent, None, None,
+ _("Reference to the containing dFoldPanelBar."))
DynamicBarColor1 = makeDynamicProperty(BarColor1)
DynamicBarColor2 = makeDynamicProperty(BarColor2)
@@ -252,13 +258,6 @@
dcm.dControlMixin.__init__(self, preClass, parent, properties,
*args, **kwargs)
- # We need this 'trick' so that the object crawling routines work
- ## pkm: changed Parent to _parent for wx2.7 compatibility, as
_foldPanel is
- ## a raw wxPanel, and now has a Parent property which is
read-only. I'm
- ## not sure what bad things may happen, but the demo
appears to run the
- ## same regardless, so I think it's okay. What are the
'object crawling
- ## routines' referred to above?
- self._foldPanel._parent = self
self._setInitialOpenPanel()
self.bindEvent(dEvents.FoldPanelChange,
self.__onFoldPanelChange)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev