dabo Commit
Revision 5651
Date: 2010-02-04 22:08:59 -0800 (Thu, 04 Feb 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5651

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

Log:
Got a dead object exception with dStatusBar after my last commit. My only 
guess is that dStatusBar was already destroyed by the time the event for
itself would be processed, so before my changes it never would have 
raised its own dEvents.Destroy. This then just makes it work as it did
before, while keeping my changes for most objects.

Note that the Destroy event is likely happening at least a little earlier 
in the event cycle than before.


Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2010-02-05 05:57:02 UTC (rev 5650)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2010-02-05 06:08:59 UTC (rev 5651)
@@ -533,8 +533,10 @@
                        return
                self._finito = (self is evt.GetEventObject() )
                self._destroyAlreadyFired = True
-               self.raiseEvent(dEvents.Destroy, evt)
-
+               try:
+                       self.raiseEvent(dEvents.Destroy, evt)
+               except dabo.ui.deadObjectException:
+                       pass
                
        def __onWxIdle(self, evt):
                if self._needRedraw:



_______________________________________________
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]

Reply via email to