On Oct 14, 2013, at 4:18 AM, Werner F. Bruhin <[email protected]> wrote:
> 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 This looks ugly to me, especially if it needs to be repeated in several places. If an object wrapper for a deleted C++ object is no longer possible in phoenix, I think that defining: python.ui.deadObject = type(None) in uiwx.__init__.py would be cleaner. This way the isinstance checks will work fine. -- Ed Leafe _______________________________________________ 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]
