Removing a Validator

I’m working some old code of mine that creates a panel to view an XML node. I have functions to load and validate TextCtrls and ListCtrls, but I’m running into a debugging problem creating a validator to access a child node’s attribute.

Is it possible to remove a validator from a control? I can replace it, but I haven’t figured out how to create a proper validator yet.

···


Josh English
Joshua.R.English@gmail.com

http://www.joshuarenglish.com

Try SetValidator(wx.DefaultValidator)

···

On 5/12/12 10:41 AM, Josh English wrote:

I'm working some old code of mine that creates a panel to view an XML
node. I have functions to load and validate TextCtrls and ListCtrls, but
I'm running into a debugging problem creating a validator to access a
child node's attribute.

Is it possible to remove a validator from a control? I can replace it,
but I haven't figured out how to create a proper validator yet.

--
Robin Dunn
Software Craftsman

Ah. Yes. The one thing I didn’t try.

Probably because I didn’t know about it.

Thanks.

···

On Mon, May 14, 2012 at 9:34 AM, Robin Dunn robin@alldunn.com wrote:

On 5/12/12 10:41 AM, Josh English wrote:

I’m working some old code of mine that creates a panel to view an XML

node. I have functions to load and validate TextCtrls and ListCtrls, but

I’m running into a debugging problem creating a validator to access a

child node’s attribute.

Is it possible to remove a validator from a control? I can replace it,

but I haven’t figured out how to create a proper validator yet.

Try SetValidator(wx.DefaultValidator)

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Josh English
Joshua.R.English@gmail.com
http://www.joshuarenglish.com