Re: list box
Brian Debuire <[email protected]> Thu, 11 Mar 2010 15:50:56 +0000
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 11 Mar 2010 15:10:04 +0000 > From: [email protected] > To: [email protected] > CC: [email protected] > Subject: Re: [Pythoncard-users] list box > > > > 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 > I wonder if this works: self.components.List1.items = l Regards, Brian Debuire Linux Registered User #456401 _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 ------------------------------------------------------------------------------ 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 _______________________________________________ Pythoncard-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pythoncard-users