From: Andy T. <an...@us...> - 2005-02-09 08:18:05
|
Update of /cvsroot/pythoncard/PythonCard/docs/GettingStarted In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7073/GettingStarted Modified Files: starter1.py starter1.rsrc.py Log Message: Fixed some problems with the walkthrough sample program and documentation Index: starter1.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/docs/GettingStarted/starter1.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** starter1.py 5 May 2004 16:53:23 -0000 1.6 --- starter1.py 9 Feb 2005 08:17:53 -0000 1.7 *************** *** 6,14 **** """ ! from PythonCard import model class Minimal(model.Background): ! pass if __name__ == '__main__': --- 6,15 ---- """ ! from PythonCard import model, dialog class Minimal(model.Background): ! def on_menuFileAbout_select(self, event): ! pass if __name__ == '__main__': Index: starter1.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/docs/GettingStarted/starter1.rsrc.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** starter1.rsrc.py 10 May 2004 05:01:59 -0000 1.3 --- starter1.rsrc.py 9 Feb 2005 08:17:53 -0000 1.4 *************** *** 20,26 **** 'items': [ { 'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit\tAlt+X', ! 'command':'exit' } ] } ] }, --- 20,31 ---- 'items': [ { 'type':'MenuItem', + 'name':'menuFileAbout', + 'label':'&About\tAlt+a', + 'command':'about' }, + { 'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit\tAlt+X', ! 'command':'exit' } , ! ] }, ] }, |