From: Kevin A. <ka...@us...> - 2004-09-16 21:11:45
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1751/tools/codeEditor Modified Files: codeEditorR.py Log Message: fixed CustomDialog check Index: codeEditorR.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditorR.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** codeEditorR.py 16 Sep 2004 19:04:21 -0000 1.13 --- codeEditorR.py 16 Sep 2004 21:11:33 -0000 1.14 *************** *** 109,125 **** self.components.popComponentNames.items = [] self.components.popComponentEvents.items = [] - try: - background = rsrc.application.backgrounds[0] - editingDialog = False - except: - editingDialog = True try: self.resourceFilename = getResourceFilename(self.documentPath) self.rsrc = resource.ResourceFile(self.resourceFilename).getResource() self.rsrcComponents = {} ! if editingDialog: ! components = self.rsrc.components ! else: components = self.rsrc.application.backgrounds[0].components for c in components: self.rsrcComponents[c.name] = c.type --- 109,121 ---- self.components.popComponentNames.items = [] self.components.popComponentEvents.items = [] try: self.resourceFilename = getResourceFilename(self.documentPath) self.rsrc = resource.ResourceFile(self.resourceFilename).getResource() self.rsrcComponents = {} ! if hasattr(self.rsrc, 'application'): components = self.rsrc.application.backgrounds[0].components + else: + # CustomDialog + components = self.rsrc.components for c in components: self.rsrcComponents[c.name] = c.type |