From: Kevin A. <ka...@us...> - 2004-09-25 03:21:36
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3726 Modified Files: passwordfield.py textarea.py textfield.py Log Message: changed to delaying binding of events with wx.CallAfter Index: textfield.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/textfield.py,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** textfield.py 13 May 2004 02:40:24 -0000 1.29 --- textfield.py 25 Sep 2004 03:21:20 -0000 1.30 *************** *** 96,100 **** #adapter = TextFieldEventBinding(self) #adapter.bindEvents() ! self._bindEvents(event.WIDGET_EVENTS + TextFieldEvents) def _getAlignment(self): --- 96,104 ---- #adapter = TextFieldEventBinding(self) #adapter.bindEvents() ! ## self._bindEvents(event.WIDGET_EVENTS + TextFieldEvents) ! # KEA 2004-09-24 ! # changing to CallAfter to force the gainFocus ! # event to occur after the initialize event ! wx.CallAfter(self._bindEvents, event.WIDGET_EVENTS + TextFieldEvents) def _getAlignment(self): Index: passwordfield.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/passwordfield.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** passwordfield.py 2 May 2004 22:03:06 -0000 1.21 --- passwordfield.py 25 Sep 2004 03:20:57 -0000 1.22 *************** *** 62,66 **** #adapter = textfield.TextFieldEventBinding(self) #adapter.bindEvents() ! self._bindEvents(event.WIDGET_EVENTS + textfield.TextFieldEvents) --- 62,70 ---- #adapter = textfield.TextFieldEventBinding(self) #adapter.bindEvents() ! ## self._bindEvents(event.WIDGET_EVENTS + textfield.TextFieldEvents) ! # KEA 2004-09-24 ! # changing to CallAfter to force the gainFocus ! # event to occur after the initialize event ! wx.CallAfter(self._bindEvents, event.WIDGET_EVENTS + textfield.TextFieldEvents) Index: textarea.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/textarea.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** textarea.py 19 Jul 2004 17:40:44 -0000 1.26 --- textarea.py 25 Sep 2004 03:21:20 -0000 1.27 *************** *** 66,70 **** self.SetBackgroundColour(self.GetParent().GetBackgroundColour()) ! self._bindEvents(event.WIDGET_EVENTS + textfield.TextFieldEvents) # KEA 2004-04-20 --- 66,74 ---- self.SetBackgroundColour(self.GetParent().GetBackgroundColour()) ! ## self._bindEvents(event.WIDGET_EVENTS + textfield.TextFieldEvents) ! # KEA 2004-09-24 ! # changing to CallAfter to force the gainFocus ! # event to occur after the initialize event ! wx.CallAfter(self._bindEvents, event.WIDGET_EVENTS + textfield.TextFieldEvents) # KEA 2004-04-20 |