From: Brian D. <deb...@ho...> - 2007-05-20 03:58:44
|
Hi there, =20 I havent test this yet, but I think might work as well =20 del self.components.theChoice.items[3] =20 RegardsBrian DebuireCIO, Kuntur Designswww.kunturcorporation.com/kunturdesi= gns Date: Fri, 18 May 2007 19:11:06 +0100From: al...@tw...To: dubito.ergo.= su...@gm...CC: pyt...@li...Subject: Re: [Python= card-users] dynamically update choice component? Matthew Richardson wrote:=20 Hello, I figured out how to append to a choice component, but what if you want remove an item? Rather embarrassingly, I don't currently have a working PythonCard instal= lation, so I haven't tested this :-)It looks as though you can (i.e. need = to) do something like mychoices =3D self.components.theChoice.items d= el mychoices[3] self.components.theChoice.items =3D mychoicesAssigning t= o a choice component's "items" is equivalent to clearing and then appending= the list of items. =20 --=20 Alex Tweedly mailto:al...@tw... www.tweedly.net _________________________________________________________________ Connect to the next generation of MSN Messenger=A0 http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc= e=3Dwlmailtagline= |