[wxPython-users] Deleting a text control from an EVT_TEXT_ENTER
Anthony M. Floyd
Anthony.Floyd at convergent.ca
Wed Jul 18 09:52:01 PDT 2007
[snip]
> > Try to use something like:
> >
> > wx.CallAfter(theTextCtrl.Destroy)
> >
> > or:
> >
> > wx.CallLater(200, theTextCtrl.Destroy)
> >
[snip]
> Thanks for the suggestion. Unfortunately, neither of these
> approaches works in the sample program I attached nor in our
Actually, this does work, when the correct syntax is used for
wx.CallAfter:
When the code reads wx.CallAfter(theTextCtrl.Destroy()) I get a hard
crash.
When the code reads wx.CallAfter(theTextCtrl.Destroy) it works fine.
The hard crash without feedback is a little frustrating, but I'm glad to
see that when used correctly it functions as expected.
Thanks for the help,
Anthony.
More information about the wxpython-users
mailing list