[Boa Constr] Post to Boa-constructur-users list
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2009-10-23 17:57:18
|
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 |