Re: [Boa Constr] wx.ComboBox choices
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2008-07-04 14:15:45
|
hpvpl wrote: > Hi, > > I have a small problem with Boa and ComboBox Choices fields. This not a > bug. More a "how-to" question. > By default the wx.ComboBox is created with a choice=[]. > > In my code I create a list (self.myList) and would like to pass this > list into the ComboBox when initialized. > When I try to put the self.myList into the Choices field of my ComboBox > I get the following error: > _your_frame_attrs_ instance has no attribute 'myList' Without seeing the code I can't say what is wrong. Just a guess, are you creating your myList after _init_ctrls and try to use it before, i.e. in Boa generated code? > > This is a dummy question ... but I can't find any answer on the forum. > > Any idea ? Attached is a small sample, hope this helps. Werner > > In any case Boa constructor is really a flexible and very usefull > wx.pyhton RAD tool. > > Thanks and congratulation. !! > > Cheers > > Vpl > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users |