Re: [Tutor] PythonCard error checking

2007-12-24 Thread Alan Gauld
"Roy Chen" <[EMAIL PROTECTED]> wrote > > I have a textField, and I wish to check that only integers > within a certain range are entered into it. Not sure about PythonCard but most GUI toolkits, including wxPython from which PythonCard is buil;t allow you to trap the entry of data(usually with

Re: [Tutor] PythonCard error checking

2007-12-24 Thread Michael Langford
While I'm a user, I'm not a guru. Those are at: https://lists.sourceforge.net/lists/listinfo/pythoncard-users for pythoncard. I know a common technique is on a button event for the "ok" or "apply" button is to validate all the text fields in an exception safe setting. On exception exit the event h

[Tutor] PythonCard error checking

2007-12-24 Thread Roy Chen
Hello everyone, I've just started trying PythonCard to build a simple GUI for a little application I'm writing. Just wondering if anyone knows the "proper" way to do some simple error checking: for example, I have a textField, and I wish to check that only integers within a certain range are enter