Both issues (before the "<<message breakpoint>>" I inserted in your reply)
would be addressed by using a timer or by allowing the user to trigger
validation manually. You may even want to have validation working in a
seperate thread...
An example of how to use the timer is provided in the wxPython DEMO, as the
splash screen is on a "self-destruct" timer. Take a look at
wxPython\lib\splashscreen.py, there's an embedded class inside the
constructor.
Good luck, and be nice to your users! ; )
ยทยทยท
----------------------------------------------------------------------
Olivier A. Dagenais - Carleton University - Computer Science III
----- Original Message -----
Message: 8
To: wxpython-users@wxwindows.org
Date: Thu, 03 Aug 2000 12:15:32 -0700
From: "Ralf Grosse-Kunstleve" <rwgk@my-Deja.com>
Reply-To: rwgk@my-Deja.com
Subject: Re: [wxPython] Re: event "wxTextCtrl loses focus"?
Organization: My Deja Email (http://www.my-deja.com:80)
Reply-To: wxpython-users@wxwindows.orgSome of the validations will require a database
lookup, possibly on a remote machine. Doing
this on each keystroke could result in a very
slow response.Another case is when only certain symbols
are valid input, but the number of
possibilites is too large and too diverse.
In a certain case I have in mind (crystallo-
graphic space group symbols), the validation
could be done fast enough on each keystroke,
but while the user is typing, the status
indicator (for example the background color)
would change all the time. This could be
quite annoying.
<<message breakpoint>>
However, your idea of using
a timer is very interesting. Once I am more
familiar with wxPython and the
fundamental problems are solved (see my
other posting) I will explore this idea.Thanks!
Ralf--