From: Kevin A. <ka...@us...> - 2004-05-01 18:11:35
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29784/components Modified Files: button.py textfield.py Log Message: switched to EventLog for logging events Index: textfield.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/textfield.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** textfield.py 1 May 2004 06:13:34 -0000 1.24 --- textfield.py 1 May 2004 18:11:25 -0000 1.25 *************** *** 481,485 **** handler = self.eventIdToHandler.get(eventType, None) if handler: ! event.EventQueue()._impl.eventOccurred2(eventName, self.name, True) if 0: print "dispatching", handler._name --- 481,485 ---- handler = self.eventIdToHandler.get(eventType, None) if handler: ! event.EventLog.getInstance().log(eventName, self.name, True) if 0: print "dispatching", handler._name *************** *** 501,505 **** background = None else: ! event.EventQueue()._impl.eventOccurred2(eventName, self.name, False) # hopefully this is all we need to do for "unused events" aWxEvent.Skip() --- 501,505 ---- background = None else: ! event.EventLog.getInstance().log(eventName, self.name, False) # hopefully this is all we need to do for "unused events" aWxEvent.Skip() Index: button.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/button.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** button.py 30 Apr 2004 23:55:49 -0000 1.26 --- button.py 1 May 2004 18:11:24 -0000 1.27 *************** *** 274,278 **** handler = self.eventIdToHandler.get(eventType, None) if handler: ! event.EventQueue()._impl.eventOccurred2(eventName, self.name, True) if 0: print "dispatching", handler._name --- 274,278 ---- handler = self.eventIdToHandler.get(eventType, None) if handler: ! event.EventLog.getInstance().log(eventName, self.name, True) if 0: print "dispatching", handler._name *************** *** 294,298 **** background = None else: ! event.EventQueue()._impl.eventOccurred2(eventName, self.name, False) # hopefully this is all we need to do for "unused events" aWxEvent.Skip() --- 294,298 ---- background = None else: ! event.EventLog.getInstance().log(eventName, self.name, False) # hopefully this is all we need to do for "unused events" aWxEvent.Skip() |