dabo Commit
Revision 5058
Date: 2009-02-11 15:23:42 -0800 (Wed, 11 Feb 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5058

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

Log:
Removed a 5-year-old block of unused code thanks to John Fabiani.

At first, I thought that Dabo events should go in the next idle, not
in the current callstack. However, this doesn't work consistently and
at this point in my career I think my original thought was
uninformed.



Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2009-02-10 23:43:02 UTC (rev 5057)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2009-02-11 23:23:42 UTC (rev 5058)
@@ -935,17 +935,9 @@
                        # Perhaps we should log this too?
                        return
        
-               ##- 2004/01/07: Problems with segfaults and illegal 
instructions in some cases
-               ##-             with the wx.CallAfter. Revert back for now to 
calling in the
-               ##-             callstack.
-               if True or eventClass is dabo.dEvents.Destroy:
-                       # Call immediately in this callstack so the object 
isn't completely
-                       # gone by the time the callback is called.
-                       super(dPemMixin, self).raiseEvent(eventClass, 
nativeEvent, *args, **kwargs)
-               else:
-                       # Call with wx.CallAfter in the next Idle.
-                       super(dPemMixin, self).raiseEvent(eventClass, 
nativeEvent,
-                                       uiCallAfterFunc=wx.CallAfter, *args, 
**kwargs)
+               # Call immediately in this callstack so the object isn't 
completely
+               # gone by the time the callback is called.
+               super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, 
*args, **kwargs)
        
        
        def formCoordinates(self, pos=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]

Reply via email to