From: Kevin A. <ka...@us...> - 2005-12-29 20:37:24
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25353 Modified Files: model.py Log Message: added _spec attribute to Background Index: model.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/model.py,v retrieving revision 1.194 retrieving revision 1.195 diff -C2 -d -r1.194 -r1.195 *** model.py 2 Nov 2005 12:08:52 -0000 1.194 --- model.py 29 Dec 2005 20:37:16 -0000 1.195 *************** *** 627,630 **** --- 627,638 ---- self.id = wx.NewId() self.resource = aBgRsrc + # KEA 2005-12-29 + # this is a hack to make sure the background has a defined spec + # attribute for documentation purposes, but the spec should be defined + # just like we do for components + # Also need to verify that the currently defined component specs are + # being used to enforce the attributes when loading a resource and not + # just using the default defined in spec.py + self._spec = aBgRsrc._spec.getEntry('Background') self.application = wx.GetApp() self.setName(aBgRsrc.name) |