I've noticed that wx.stc.StyledTextCtrl instances lack either an Ok or
IsOk method to verify their non-destroyed status. Robin, would it be
possible for it to gain one or the other?
Thank you,
- Josiah
I've noticed that wx.stc.StyledTextCtrl instances lack either an Ok or
IsOk method to verify their non-destroyed status. Robin, would it be
possible for it to gain one or the other?
Thank you,
- Josiah
You can always just check the reference directly. Assuming that you have a reference named 'theControl' to the instance in question, you can check it like this:
if theControl:
# Instance is OK
doSomeStuff()
else:
# Instance is destroyed
dontDoSomeStuff()
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
On Jul 21, 2006, at 2:47 PM, Josiah Carlson wrote:
I've noticed that wx.stc.StyledTextCtrl instances lack either an Ok or
IsOk method to verify their non-destroyed status. Robin, would it be
possible for it to gain one or the other?
I had forgotten about that little feature. Thank you Ed.
- Josiah
Ed Leafe <ed@leafe.com> wrote:
On Jul 21, 2006, at 2:47 PM, Josiah Carlson wrote:
> I've noticed that wx.stc.StyledTextCtrl instances lack either an Ok or
> IsOk method to verify their non-destroyed status. Robin, would it be
> possible for it to gain one or the other?You can always just check the reference directly. Assuming that you
have a reference named 'theControl' to the instance in question, you
can check it like this:if theControl:
# Instance is OK
doSomeStuff()
else:
# Instance is destroyed
dontDoSomeStuff()