Re: list box
Neil Hughes <[email protected]> Thu, 11 Mar 2010 15:10:04 +0000
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Organization | Support4Omega Ltd. |
| Message-ID | <[email protected]> |
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. -- Neil Hughes ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev