From: Kevin A. <ka...@us...> - 2004-05-01 06:13:42
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29518 Modified Files: event.py Log Message: transition code to new style event bindings and dispatch this is essentially the same code as used by button.py _bindEvents and _dispatch Index: event.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/event.py,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** event.py 30 Apr 2004 23:29:44 -0000 1.57 --- event.py 1 May 2004 06:13:34 -0000 1.58 *************** *** 355,371 **** class KeyPressEvent( Event ) : name = 'keyPress' class KeyDownEvent( Event ) : name = 'keyDown' class KeyUpEvent( Event ) : name = 'keyUp' ! class TextUpdateEvent( Event ) : name = 'textUpdate' ! class TextEnterEvent( Event ) : --- 355,377 ---- class KeyPressEvent( Event ) : name = 'keyPress' + binding = wx.EVT_CHAR + id = wx.wxEVT_CHAR class KeyDownEvent( Event ) : name = 'keyDown' + binding = wx.EVT_KEY_DOWN + id = wx.wxEVT_KEY_DOWN class KeyUpEvent( Event ) : name = 'keyUp' ! binding = wx.EVT_KEY_UP ! id = wx.wxEVT_KEY_UP class TextUpdateEvent( Event ) : name = 'textUpdate' ! binding = wx.EVT_TEXT ! id = wx.wxEVT_COMMAND_TEXT_UPDATED class TextEnterEvent( Event ) : |