But why is it even getting to that line in the first place? Shouldn't
the validator kick in before it even tries the conversion? If so, then
it will test to see if the length of the input is 0, and if it is a
message box should pop up. But my code seems to skip validation all
together, so there must be something I'm doing wrong even before I get
to the int conversion line.
···
---------- Forwarded message ----------
From: "SPE Stani's Python Editor" <spe.stani.be@gmail.com>
To: wxPython-users@lists.wxwidgets.org
Date: Fri, 28 Jul 2006 18:03:19 +0200
Subject: Re: [wxPython-users] How to get a validator to work in a frame
On 7/28/06, John Salerno <johnjsal@gmail.com> wrote:I think it has nothing to do with wxPython. Probably you are trying to
convert an empty string into an integer. You should first get the
value as a string and test if it is not empty before converting to an
integer.