Re: [Boa Constr] _init_coll_..._Items sizer problem
Status: Beta
Brought to you by:
riaan
From: mindyerbiznez <min...@gm...> - 2009-10-26 05:30:59
|
On Sat, 17 Oct 2009 00:55:47 -0600, Werner F. Bruhin <wer...@fr...> wrote: > mindy erbiznez wrote: >> Hi, >> I'm writing an GUI app that uses multiple nested notebooks each with >> several sizers (~100) and each has a unique name. >> >> When I attempt to use the frame designer the following exception is >> raised: >> Boa Error >> Exception: Collection body _init_coll_<mySizerName>_Items not in init, >> body, fin form >> >> It's possible for me to alter the name of this function and make the >> exception go away for this particular sizer, only to have the same >> exception referencing a different sizer. >> >> I admit to adding (copy/paste) many of these sizers and related >> functions by hand rather than using the frame designer, but they are all >> added correctly (ie: the sizers work and the GUI looks right). >> >> Is there some sort of meta-file that I'd need to alter to make the frame >> designer function again. > No there is no meta-file, Boa uses the source code directly. > > I am pretty sure that when you did the copy/paste you misnamed something > and Boa can not find it anymore, it might still be valid Python code and > might still work but if the code does not comply with the Boa naming > standard then it will not work (this is only true for the generated > section of the code). > > Check the code again, if you can't find it attach it here and I will try > and have a look. > > Werner > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users Thanks for the response, Werner. I figured out the problem: the "init, body, fin form" is actually a specific format that the generated method must be in in order for BoaConstructor to interpret it correctly. The format is something like: def _init_coll_sizername_Items(self, parent): # generated method, do not edit sizername.AddWindow(blahblah) *** the comment and/or the newline between the comment and the function body are important *** Thanks again |