From: Rowland S. <mon...@us...> - 2004-05-01 18:47:59
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4329/components Modified Files: codeeditor.py button.py calendar.py list.py combobox.py choice.py tree.py slider.py multicolumnlist.py radiogroup.py spinner.py textfield.py checkbox.py iehtmlwindow.py Log Message: Made the event.EventSource interface public and changed all references to EventSource methods. Index: spinner.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/spinner.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** spinner.py 21 Apr 2004 03:45:00 -0000 1.14 --- spinner.py 1 May 2004 18:47:48 -0000 1.15 *************** *** 147,151 **** if evt is not None : ! self._component._notifyEventListeners(evt) #if not evt.getUsed(): # aWxEvent.Skip() --- 147,151 ---- if evt is not None : ! self._component.notifyEventListeners(evt) #if not evt.getUsed(): # aWxEvent.Skip() Index: slider.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/slider.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** slider.py 21 Apr 2004 03:45:00 -0000 1.16 --- slider.py 1 May 2004 18:47:48 -0000 1.17 *************** *** 123,127 **** if evt is not None : ! self._component._notifyEventListeners( evt ) --- 123,127 ---- if evt is not None : ! self._component.notifyEventListeners( evt ) Index: checkbox.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/checkbox.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** checkbox.py 21 Apr 2004 03:45:00 -0000 1.16 --- checkbox.py 1 May 2004 18:47:49 -0000 1.17 *************** *** 73,77 **** if evt is not None : ! self._component._notifyEventListeners( evt ) --- 73,77 ---- if evt is not None : ! self._component.notifyEventListeners( evt ) Index: button.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/button.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** button.py 1 May 2004 18:11:24 -0000 1.27 --- button.py 1 May 2004 18:47:48 -0000 1.28 *************** *** 365,369 **** if evt is not None: ! component._notifyEventListeners(evt) --- 365,369 ---- if evt is not None: ! component.notifyEventListeners(evt) Index: iehtmlwindow.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/iehtmlwindow.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** iehtmlwindow.py 21 Apr 2004 16:34:31 -0000 1.13 --- iehtmlwindow.py 1 May 2004 18:47:49 -0000 1.14 *************** *** 109,113 **** if evt is not None: ! component._notifyEventListeners(evt) --- 109,113 ---- if evt is not None: ! component.notifyEventListeners(evt) Index: tree.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/tree.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** tree.py 21 Apr 2004 03:45:01 -0000 1.12 --- tree.py 1 May 2004 18:47:48 -0000 1.13 *************** *** 102,106 **** if evt is not None : ! self._component._notifyEventListeners(evt) --- 102,106 ---- if evt is not None : ! self._component.notifyEventListeners(evt) Index: textfield.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/textfield.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** textfield.py 1 May 2004 18:11:25 -0000 1.25 --- textfield.py 1 May 2004 18:47:48 -0000 1.26 *************** *** 596,600 **** # event = self._createEvent( TextEnterEvent, aWxEvent ) # this should be associated with losing focus, not textEnter ! #self._component._notifyEventListeners( CloseField( self._component ) ) if aWxEvent.GetEventType() == wx.wxEVT_KEY_DOWN : --- 596,600 ---- # event = self._createEvent( TextEnterEvent, aWxEvent ) # this should be associated with losing focus, not textEnter ! #self._component.notifyEventListeners( CloseField( self._component ) ) if aWxEvent.GetEventType() == wx.wxEVT_KEY_DOWN : *************** *** 615,619 **** if evt is not None : #print '_dispatch evt is not None' ! self._component._notifyEventListeners( evt ) #print "after notify" --- 615,619 ---- if evt is not None : #print '_dispatch evt is not None' ! self._component.notifyEventListeners( evt ) #print "after notify" Index: codeeditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/codeeditor.py,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** codeeditor.py 25 Apr 2004 15:23:44 -0000 1.33 --- codeeditor.py 1 May 2004 18:47:48 -0000 1.34 *************** *** 416,420 **** # event = self._createEvent( TextEnterEvent, aWxEvent ) # this should be associated with losing focus, not textEnter ! #self._component._notifyEventListeners( CloseField( self._component ) ) if aWxEvent.GetEventType() == wx.wxEVT_KEY_DOWN : --- 416,420 ---- # event = self._createEvent( TextEnterEvent, aWxEvent ) # this should be associated with losing focus, not textEnter ! #self._component.notifyEventListeners( CloseField( self._component ) ) if aWxEvent.GetEventType() == wx.wxEVT_KEY_DOWN : *************** *** 435,439 **** if evt is not None : #print '_dispatch evt is not None' ! self._component._notifyEventListeners( evt ) #print "after notify" --- 435,439 ---- if evt is not None : #print '_dispatch evt is not None' ! self._component.notifyEventListeners( evt ) #print "after notify" Index: radiogroup.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/radiogroup.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** radiogroup.py 24 Apr 2004 05:34:15 -0000 1.22 --- radiogroup.py 1 May 2004 18:47:48 -0000 1.23 *************** *** 118,122 **** if evt is not None : ! self._component._notifyEventListeners( evt ) --- 118,122 ---- if evt is not None : ! self._component.notifyEventListeners( evt ) Index: list.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/list.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** list.py 24 Apr 2004 06:49:46 -0000 1.22 --- list.py 1 May 2004 18:47:48 -0000 1.23 *************** *** 160,164 **** if evt is not None : ! self._component._notifyEventListeners( evt ) --- 160,164 ---- if evt is not None : ! self._component.notifyEventListeners( evt ) Index: multicolumnlist.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/multicolumnlist.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** multicolumnlist.py 21 Apr 2004 03:45:00 -0000 1.23 --- multicolumnlist.py 1 May 2004 18:47:48 -0000 1.24 *************** *** 533,537 **** if evt is not None: ! self._component._notifyEventListeners(evt) --- 533,537 ---- if evt is not None: ! self._component.notifyEventListeners(evt) Index: combobox.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/combobox.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** combobox.py 25 Apr 2004 06:26:49 -0000 1.24 --- combobox.py 1 May 2004 18:47:48 -0000 1.25 *************** *** 82,86 **** if wx.Platform == '__WXMAC__': def _setStringSelection(self, s): self.SetSelection(self.FindString(s)) ! stringSelection = property(ContainerMixin._getStringSelection, _setStringSelection) --- 82,86 ---- if wx.Platform == '__WXMAC__': def _setStringSelection(self, s): self.SetSelection(self.FindString(s)) ! stringSelection = property(ContainerMixin._getStringSelection, _setStringSelection) *************** *** 130,134 **** if evt is not None : ! self._component._notifyEventListeners( evt ) if not evt.getUsed(): aWxEvent.Skip() --- 130,134 ---- if evt is not None : ! self._component.notifyEventListeners( evt ) if not evt.getUsed(): aWxEvent.Skip() Index: calendar.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/calendar.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** calendar.py 21 Apr 2004 03:45:00 -0000 1.16 --- calendar.py 1 May 2004 18:47:48 -0000 1.17 *************** *** 100,104 **** if evt is not None: ! component._notifyEventListeners(evt) --- 100,104 ---- if evt is not None: ! component.notifyEventListeners(evt) Index: choice.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/choice.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** choice.py 22 Apr 2004 16:42:36 -0000 1.17 --- choice.py 1 May 2004 18:47:48 -0000 1.18 *************** *** 88,92 **** if evt is not None : ! self._component._notifyEventListeners( evt ) import sys --- 88,92 ---- if evt is not None : ! self._component.notifyEventListeners( evt ) import sys |