Post to Boa-constructur-users list

"Werner F. Bruhin" <[email protected]> Fri, 23 Oct 2009 19:57:00 +0200
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
Hi Nathaniel,

I am one of the moderators for the above list.

The list is members only, due to the amount of spam we have seen in the 
past.  Since this was changed I think you are the first to post a 
legimite post and I thought that I selected "accept" you message, but I 
don't see it come through on the list.

Where is "daq" defined?

What I do in these cases I load the choice list after 
"self._init_ctrls(parent)", i.e. leave the Boa generated code alone.

        self.allDevices = wx.ListBox(choices='',
              id=wxID_CHOOSEDEVICEALLDEVICES,
              name='allDevices', parent=self, pos=wx.Point(24, 32),
              size=wx.Size(132, 63), style=0)



then after _init_ctrls:
something like:

    self.allDevices.AppendItems(items)

Would probably put this into a method, which allows you to reload the 
list, and call this method just after _init_ctrls.

    def doLoadDevices(self, items):
          self.allDevices.Clear()
          self.allDevices.AppendItems(items)


There is a way of defining things before _init_ctrls and do what you are 
currently doing but I can't find any sample, IIRC something has to be 
double defined for some reason.

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