[wxPython-users] wx.lib.pubsub and wx.EVT_CLOSE

Chris Mellon arkanes at gmail.com
Mon Jun 4 09:31:37 PDT 2007


On 6/4/07, Eric Ongerth <ericongerth at gmail.com> wrote:
>
>
> On 6/3/07, Josiah Carlson <jcarlson at uci.edu> wrote:
> >
<much snipped>

For your convenience, wxPython objects whos C++ object is destroyed
(and thus will raise PyDeadObjectError) evaluate to boolean false. So
you can use if (self): as a guard against access to dead objects.




More information about the wxpython-users mailing list