dabo Commit
Revision 1528
Date: 2005-11-09 11:18:42 -0800 (Wed, 09 Nov 2005)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dPemMixin.py
Log:
The properties need to be applied to objects *after* the user code has had
a chance to set them in initProperties() or by sending to the constructor,
but *before* the afterInit() hook is called. This fixes that.
Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py 2005-11-09 17:43:14 UTC (rev 1527)
+++ trunk/dabo/ui/uiwx/dPemMixin.py 2005-11-09 19:18:42 UTC (rev 1528)
@@ -126,13 +126,14 @@
name, _explicitName = self._processName(kwargs,
self.__class__.__name__)
self._initName(name, _explicitName=_explicitName)
+ # Set the properties *before* calling the afterInit hook
+ self.setProperties(properties)
+
# _initEvents() will call the initEvents() user hook
self._initEvents()
# _afterInit() will call the afterInit() user hook
self._afterInit()
- self.setProperties(properties)
-
# 'attProperties' are properties restored from XML-like files
where
# all values are stored as strings.
if attProperties:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev