wxIntCtrl question re validator use

Werner F. Bruhin wrote:

Will,

Thanks for all this info. Even with beans you would have
gotten stuck, as you would need the database and ORM which I
use for database access and some other files which call the
one which has/shows the problem..

Tried sub-classing (at least I think so), but got errors that things
like __limited are not defined

  ^^^^
Ah, yes, that *would* happen; these vars are supposed to be
private to the class, and as written are therefore not visible
for inheritance.

, so instead I just copied the whole module into my directory,
added the line for the validator and changed the textCtrl init
to use the validator and imported this version, so whenever I
get your update with wxPython I just need to change the
import statement.

Then I sub-classed only wxIntValidator (with __init__, Clone,
TransferToWindow, and TransferFromWindow), the first two to
define the things I need for the later two which contain the
data transfer code.

Initial tests look great, thanks again for your help.

Glad this worked for you! (BTW, I submitted the patch for
wxIntCtrl to Robin this afternoon.)

Regards,
/Will Sadkin
Parlance Corporation