dabo Commit
Revision 6926
Date: 2011-10-26 14:50:37 -0700 (Wed, 26 Oct 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6926
Changed:
U trunk/dabo/ui/uiwx/__init__.py
Log:
I noticed another PyDeadObjectError while testing today, and am now convinced
that wx.FutureCall was eating these on our behalf before my addition of the
wrapper function yesterday. This should fix it.
Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py 2011-10-26 21:50:03 UTC (rev 6925)
+++ trunk/dabo/ui/uiwx/__init__.py 2011-10-26 21:50:37 UTC (rev 6926)
@@ -310,7 +310,10 @@
def ca_func(_func_ref, _func, *args, **kwargs):
"""Wrapper to call the user func and pop it off the references
dict."""
defunct = _callAfterIntervalReferences.pop((_func_ref, args),
None)
- _func(*args, **kwargs)
+ try:
+ _func(*args, **kwargs)
+ except wx._core.PyDeadObjectError:
+ pass
_callAfterIntervalReferences[(func_ref, args)] =
wx.FutureCall(interval, ca_func, func_ref, func, *args, **kwargs)
_______________________________________________
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]