From: Steve F. <sf...@ih...> - 2006-07-04 07:24:06
|
Ah ha! That'd be on_loseFocus(). Heh, thanks for such a nice framework. Steve On Mon, 2006-07-03 at 23:57 -0700, Steve Freitas wrote: > Hi, > > I've got to put together a number of pages with a lot of text fields, > the contents of which need to be saved as soon as they're changed, and > I'd like to avoid writing a lot of boilerplate > on_textFieldName_loseFocus() events. > > So I'd like to modify the event dispatch so that whenever a text field > loses focus, PythonCard will call a single, particular function within > the page's object with that event, such as > handleAllTextFieldsLosingFocus(self, event). Then at that point I can > inspect the field using event.target and do my saving. > > Is there a better way of doing this then mucking around with the event > dispatch system? Otherwise I'd guess subclassing Scriptable is probably > the right direction? > > Any help would be appreciated. Thanks. > > Steve > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users |