Update of /cvsroot/pythoncard/PythonCard/samples/testevents
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31077/samples/testevents
Modified Files:
testevents.py
Log Message:
fixed findFocus() call for Mac
Index: testevents.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/testevents/testevents.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** testevents.py 29 Apr 2004 20:14:36 -0000 1.17
--- testevents.py 30 Apr 2004 15:02:18 -0000 1.18
***************
*** 23,27 ****
self.btnTimer.start(3 * 1000) # 3 seconds
self.components.btn.setFocus()
! print " has focus:", self.findFocus().name
def on_activate(self, event):
--- 23,31 ----
self.btnTimer.start(3 * 1000) # 3 seconds
self.components.btn.setFocus()
! # on the Mac, findFocus() is returning None
! # when the sample is started with a runtime tool
! focus = self.findFocus()
! if focus:
! print " has focus:", focus.name
def on_activate(self, event):
|