On 13/10/2013 23:32, Paul McNett wrote:
On 10/13/13 8:31 AM, Werner F. Bruhin wrote:
Hi,
Not sure how to handle this.
http://wxpython.org/Phoenix/docs/html/MigrationGuide.html?highlight=pydeadobjecterror#wx-pydeadobjecterror-runtimeerror
Would this be o.k. in uiwx.__init__.py?
if 'phoenix' in wx.PlatformInfo:
deadObjectException = RuntimeError
deadObject = None
else:
deadObjectException = wx._core.PyDeadObjectError
deadObject = wx._core._wxPyDeadObject
I think so.
Unfortunately no, as 'deadObject' is used with 'isInstance', e.g. in
dPemMixin.update around line 1383.
The following works, would that be o.k.? If yes then 'deadObject' has
really no use anymore in Phoenix, no?
if 'phoenix' in wx.PlatformInfo:
if not self:
return
else:
if isinstance(self, dabo.ui.deadObject):
# This can happen if an object is released when there is a
# pending callAfter() refresh.
return
Werner
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]