From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2010-03-11 15:44:22
|
On 10/3/10 23:24, william Gunnells wrote: > I know I'm butchering thel list component. Could someone provide an exmple > as you can see below I can print the list but not add it to List1 > =name type=List > I though I understood: but evidently not. > > def on_initialize(self, event): > l=[1,2,3] > for i in l: > print i > self.components.List1.InsertItem(i) > self.update() > #self.components.List1.stringSelection(i) > You should be able to use append(i) instead of InsertItem(i) to add items to the list control. -- XXXXXXXXXXX |