I turned dbg on in wxMaskedNumCtrl.py file. Apparently a None gets converted to a string in a call to _Paste, and can no longer be cast back to a long and raises an exception. This is very obvious if you turn dbg on. My thirty second hack was to set the value to None if it's an empty string. This is really a bug, and since no one responded when I raised this issue I'll raise it again. I have enough of a hack so it works for me, but it doesn't really work.
>>I'm using wxpython 2.4.2.4u with Python2.3 on win2K platform. I set my wxMaskedNumCtrl item with >>allowNone=True in the constructor. Then I try to mynumctrl.SetValue(None) and I get a traceback. Is this a known >>bug?
ยทยทยท
>>Sameer