From: Kevin A. <ka...@us...> - 2004-04-27 02:43:42
|
Update of /cvsroot/pythoncard/PythonCard/samples/testevents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15027/samples/testevents Modified Files: testevents.py testevents.rsrc.py Log Message: ButtonMouseClickEvent test added button driven by command to testevents sample Index: testevents.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/testevents/testevents.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** testevents.rsrc.py 7 Apr 2004 00:04:00 -0000 1.1 --- testevents.rsrc.py 27 Apr 2004 02:43:33 -0000 1.2 *************** *** 8,12 **** 'name':'bgMin', 'title':'Minimal PythonCard Application', ! 'size':( 300, 100 ), 'menubar': --- 8,12 ---- 'name':'bgMin', 'title':'Minimal PythonCard Application', ! 'size':( 300, 120 ), 'menubar': *************** *** 35,38 **** --- 35,43 ---- 'position':(150, 0), 'label':'btn' }, + { 'type':'Button', + 'name':'cmdBtn', + 'position':(150, 30), + 'label':'cmdBtn', + 'command':'setText' }, ] } Index: testevents.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/testevents/testevents.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** testevents.py 25 Apr 2004 22:37:21 -0000 1.13 --- testevents.py 27 Apr 2004 02:43:33 -0000 1.14 *************** *** 116,119 **** --- 116,124 ---- event.skip() + def on_setText_command(self, event): + print "setText command", event.target.name + self.components.fld.text = "After setText" + event.skip() + def on_menuFileExit_select(self, event): self.close() |