From: Kevin A. <al...@se...> - 2004-09-16 21:50:32
|
I've fixed the codeEditorR.py program to correctly handle CustomDialog resource files. If you aren't working from cvs, you can make the fix yourself by replacing the setResourceFile method with the one below. def setResourceFile(self): 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 items = self.rsrcComponents.keys() items.sort() self.components.popComponentNames.items = items except: pass ka |