From: Kevin A. <ka...@us...> - 2004-05-10 00:46:03
|
Update of /cvsroot/pythoncard/PythonCard/samples/fpop In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16543/samples/fpop Modified Files: dlg_config.py fpop.py preview.py Log Message: removed Stack class, changed self.stack.app references to self.application changed childWindow, Background, and CustomDialog inits so stack arg isn't passed in. only did minimal testing of tools and samples Index: preview.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/preview.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** preview.py 5 May 2004 16:53:25 -0000 1.19 --- preview.py 10 May 2004 00:45:18 -0000 1.20 *************** *** 143,147 **** wildcard = "All Files (*.*)|*.*" ! dir = self.stack.app.applicationDirectory result = dialog.saveFileDialog(None, "Save As", dir, filename, wildcard) if result['accepted']: --- 143,147 ---- wildcard = "All Files (*.*)|*.*" ! dir = self.application.applicationDirectory result = dialog.saveFileDialog(None, "Save As", dir, filename, wildcard) if result['accepted']: Index: dlg_config.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/dlg_config.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** dlg_config.py 21 Apr 2004 21:29:40 -0000 1.8 --- dlg_config.py 10 May 2004 00:45:18 -0000 1.9 *************** *** 11,15 **** def __init__(self, parent): # load the resource ! path = os.path.join(parent.stack.app.applicationDirectory, \ model.internationalResourceName('dlg_config')) aDialogRsrc = resource.ResourceFile(path).getResource() --- 11,15 ---- def __init__(self, parent): # load the resource ! path = os.path.join(parent.application.applicationDirectory, \ model.internationalResourceName('dlg_config')) aDialogRsrc = resource.ResourceFile(path).getResource() Index: fpop.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/fpop.py,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** fpop.py 5 May 2004 16:53:25 -0000 1.42 --- fpop.py 10 May 2004 00:45:18 -0000 1.43 *************** *** 140,144 **** if not os.path.exists(self.configPath): os.mkdir(self.configPath) ! basePath = self.stack.app.applicationDirectory self.inifile = os.path.join(self.configPath, CONFIG_FILE) if not os.path.exists(self.inifile): --- 140,144 ---- if not os.path.exists(self.configPath): os.mkdir(self.configPath) ! basePath = self.application.applicationDirectory self.inifile = os.path.join(self.configPath, CONFIG_FILE) if not os.path.exists(self.inifile): |