From: Bell J. <jbe...@ya...> - 2002-03-31 02:43:41
|
Hi Bill, This is a Python2.2 related bug. This is fixed in the latest CVS (ie. 0.1.1a). If you have 0.1.0a I'd advise downloading the CVS. I tested it last night and got through the tutorial successfully with Python2.2 and wxPython2.3.2. Some error messages still come up during the Tutorial, but it produces working code. If for some reason you need to stay with 0.1.0a, Riaan posted the following fix some time ago: > In Companions.UtilCompanions line 220 > change > props = CollectionDTC.properties(self) > to > props = UtilityDTC.properties(self) > This didn't cause an error before Python 2.2 (even > tho it's a typo) > I still use 2.1. John --- Bill Barnes <bi...@kg...> wrote: > Working thru the tutorial and got the following > error message when adding > wxMenu to data view. Happens each time I select the > widget. It does appear, > however, in the data view window > > The error message is repeated when selecting the > menu entry in data view. > The inspector does not come up. > > Dead in the water at this point. > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > TypeError: unbound method properties() must be > called with CollectionDTC > instance as first argument (got MenuDTC instance > instead) Traceback > (most recent call last): > TypeError: unbound method properties() must be > called with CollectionDTC > instance as first argument (got MenuDTC instance > instead) File > "Views/DataView.py", line 197, in OnObjectSelect > self.updateSelection() > File "Views/DataView.py", line 190, in > updateSelection > > self.inspector.selectObject(self.objects[self.selection[0][0]][]0], > false) > File "Inspector.py", in line 222, in selectObject > c_p = compn.getPropList() > File "Companions/BaseCompanions.py", line 138, in > getPropList > propList = RTTI.getPropList(self.control, self) > File "RTTI.py", line 145, in getPropList > xtraProps = cmp.properties() > File "Companions/UtilCompanions.py", line 220,in > properties > props = CollectionDTC.properties(self) > TypeError: unbound method properties() must be > called with CollectionDTC > instance as first argument (got MenuDTC instance > instead > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > TIA > -Bill > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ |